-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
89 additions
and
90 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
|
||
|
||
global repkit "/Users/bbdaniels/GitHub/repkit" | ||
|
||
repado "${repkit}/src/tests/dev-env" | ||
|
||
copy "https://github.com/graykimbrough/uncluttered-stata-graphs/raw/master/schemes/scheme-uncluttered.scheme" /// | ||
"${repkit}/src/tests/plus-ado/scheme-uncluttered.scheme" , replace | ||
|
||
set scheme uncluttered , perm | ||
graph set eps fontface "Helvetica" | ||
|
||
sysuse auto, clear | ||
scatter price mpg | ||
|
||
|
||
|
||
// End |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,51 @@ | ||
|
||
* TODO: replace with reproot | ||
local repkit "C:/Users\wb462869\github\repkit\" | ||
local out "`repkit'/src/tests/repado/output" | ||
|
||
global repkit "/Users/bbdaniels/GitHub/repkit" | ||
* Load the commands | ||
do "`repkit'/src/ado/repado.ado" | ||
|
||
repado , adopath("${repkit}/src/tests/plus-ado") mode(strict) | ||
*********************************************** | ||
**** Test all different mode settings | ||
|
||
copy "https://github.com/graykimbrough/uncluttered-stata-graphs/raw/master/schemes/scheme-uncluttered.scheme" /// | ||
"${repkit}/src/tests/plus-ado/scheme-uncluttered.scheme" , replace | ||
repado , adopath("`out'/ado") mode("nostrict") | ||
return list | ||
assert "`r(repado_mode)'" == "nostrict" | ||
assert "`r(repado_path)'" == "`out'/ado" | ||
|
||
set scheme uncluttered , perm | ||
graph set eps fontface "Helvetica" | ||
repado using "`out'/ado", mode("nostrict") | ||
assert "`r(repado_mode)'" == "nostrict" | ||
assert "`r(repado_path)'" == "`out'/ado" | ||
|
||
sysuse auto, clear | ||
scatter price mpg | ||
repado using "`out'/ado" | ||
assert "`r(repado_mode)'" == "strict" | ||
assert "`r(repado_path)'" == "`out'/ado" | ||
|
||
repado , adopath("`out'/ado") mode("strict") | ||
assert "`r(repado_mode)'" == "strict" | ||
assert "`r(repado_path)'" == "`out'/ado" | ||
|
||
repado , adopath("`out'/ado") nostrict | ||
assert "`r(repado_mode)'" == "nostrict" | ||
assert "`r(repado_path)'" == "`out'/ado" | ||
|
||
// End | ||
repado , adopath("`out'/ado") | ||
assert "`r(repado_mode)'" == "strict" | ||
assert "`r(repado_path)'" == "`out'/ado" | ||
|
||
repado using "`out'/ado", mode("nostrict") | ||
assert "`r(repado_mode)'" == "nostrict" | ||
assert "`r(repado_path)'" == "`out'/ado" | ||
|
||
repado using "`out'/ado", mode("strict") | ||
assert "`r(repado_mode)'" == "strict" | ||
assert "`r(repado_path)'" == "`out'/ado" | ||
|
||
repado using "`out'/ado", | ||
assert "`r(repado_mode)'" == "strict" | ||
assert "`r(repado_path)'" == "`out'/ado" | ||
|
||
repado using "`out'/ado", nostrict | ||
assert "`r(repado_mode)'" == "nostrict" | ||
assert "`r(repado_path)'" == "`out'/ado" |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
|
||
* TODO: replace with reproot | ||
local repkit "C:/Users\wb462869\github\repkit\" | ||
|
||
* Load the commands | ||
do "`repkit'/src/ado/repkit.ado" | ||
|
||
* Test base case | ||
repkit | ||
|
||
* test beta output | ||
repkit "beta dimetest" | ||
|
||
* Test that invalid command is caught | ||
cap repkit "invalid subcommand" | ||
assert _rc == 99 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters