-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: use case-insensitive sort and remove trailing whitespace in prep…
- Loading branch information
1 parent
bb968f7
commit d58390a
Showing
5 changed files
with
232 additions
and
25 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,65 @@ | ||
{UTF-8} | ||
|
||
Apple 1 = 1 | ||
~~| | ||
|
||
Apple 2 = 1 | ||
~~| | ||
|
||
apple 3 = 1 | ||
~~| | ||
|
||
Banana 1 = 1 | ||
~~| | ||
|
||
Banana 2 = 1 | ||
~~| | ||
|
||
banana 3 = | ||
Banana 1 | ||
* Banana 2 | ||
~~| | ||
|
||
carrot 1 = 1 | ||
~~| | ||
|
||
carrot 2 = 1 | ||
~~| | ||
|
||
carrot 3 Data 1 | ||
~~| | ||
|
||
Carrot 3 Data 2 | ||
~~| | ||
|
||
DimA: A1, A2, A3 | ||
~~| | ||
|
||
dimB: B1, B2, B3 | ||
~~| | ||
|
||
FINAL TIME = 10 | ||
~~| | ||
|
||
INITIAL TIME = 0 | ||
~~| | ||
|
||
Look1((0,0),(1,1),(2,2)) | ||
~~| | ||
|
||
Look2((0,0),(1,1),(2,2)) | ||
~~| | ||
|
||
"Quotes 1" = 1 | ||
~~| | ||
|
||
" quotes 2 with extra whitespace " = 1 | ||
~~| | ||
|
||
SAVEPER = | ||
TIME STEP | ||
~~| | ||
|
||
TIME STEP = 1 | ||
~~| | ||
|
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,104 @@ | ||
{UTF-8} | ||
|
||
" quotes 2 with extra whitespace " = 1 | ||
~ dmnl | ||
~ Comment | ||
| | ||
|
||
"Quotes 1" = 1 | ||
~ dmnl | ||
~ Comment | ||
| | ||
|
||
apple 3 = 1 | ||
~ dmnl | ||
~ Comment | ||
| | ||
|
||
Carrot 3 Data 2 :RAW: | ||
~ Tons | ||
~ | | ||
|
||
banana 3 = | ||
Banana 1 | ||
* Banana 2 | ||
~ dmnl | ||
~ Comment | ||
| | ||
|
||
carrot 3 Data 1 :RAW: | ||
~ Tons | ||
~ | | ||
|
||
carrot 2 = 1 | ||
~ dmnl | ||
~ Comment | ||
| | ||
|
||
Look2((0,0),(1,1),(2,2)) | ||
~~| | ||
|
||
Look1((0,0),(1,1),(2,2)) | ||
~~| | ||
|
||
Apple 2 = 1 | ||
~ dmnl | ||
~ Comment | ||
| | ||
|
||
carrot 1 = 1 | ||
~ dmnl | ||
~ Comment | ||
| | ||
|
||
Banana 2 = 1 | ||
~ dmnl | ||
~ Comment | ||
| | ||
|
||
Banana 1 = 1 | ||
~ dmnl | ||
~ Comment | ||
| | ||
|
||
Apple 1 = 1 | ||
~ dmnl | ||
~ Comment | ||
| | ||
|
||
dimB: B1, B2, B3 | ||
~~| | ||
|
||
DimA: A1, A2, A3 | ||
~~| | ||
|
||
******************************************************** | ||
.Control | ||
********************************************************~ | ||
Simulation Control Parameters | ||
| | ||
|
||
FINAL TIME = 10 | ||
~ Month | ||
~ The final time for the simulation. | ||
| | ||
|
||
INITIAL TIME = 0 | ||
~ Month | ||
~ The initial time for the simulation. | ||
| | ||
|
||
SAVEPER = | ||
TIME STEP | ||
~ Month [0,?] | ||
~ The frequency with which output is stored. | ||
| | ||
|
||
TIME STEP = 1 | ||
~ Month [0,?] | ||
~ The time step for the simulation. | ||
| | ||
|
||
\\\---/// Sketch information - do not modify anything except names | ||
V300 Do not put anything below this section - it will be ignored | ||
*View 1 |
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,19 @@ | ||
#!/bin/bash | ||
|
||
MODEL_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" | ||
SDE='node ../../src/sde.js' | ||
|
||
cd $MODEL_DIR | ||
$SDE generate --preprocess input.mdl | ||
|
||
diff expected.mdl build/input.mdl > build/diff.txt 2>&1 | ||
if [ $? != 0 ]; then | ||
echo | ||
echo "ERROR: 'sde generate --preprocess' produced unexpected results:" | ||
echo | ||
cat build/diff.txt | ||
echo | ||
exit 1 | ||
fi | ||
|
||
echo "All validation checks passed!" |
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