557 Commits

Author SHA1 Message Date
Shuzo Katayama
a831990c35 merge 2021-07-01 16:14:16 -04:00
Shuzo Katayama
3075d8a35a fixed fuel cost 2021-07-01 16:02:31 -04:00
Lee Spector
01f93710ed
Merge pull request #20 from klingliu/master
Change final output map to display total error & Change max-number and min-number so keep-number-reasonable works
2021-06-29 17:33:32 -04:00
klingliu
51ff11c362 Change max-number-magnitude and min-number-magnitude to be more reasonable 2021-06-29 17:30:07 -04:00
klingliu
fc5827e711 Change final output map to display total error 2021-06-29 16:52:17 -04:00
Lee Spector
390c880291
Merge pull request #19 from klingliu/outputs
Change outputs from strings to maps
2021-06-29 15:43:12 -04:00
Lee Spector
d0657c635d
Merge pull request #18 from klingliu/rumad
Add rumad variation
2021-06-29 15:39:34 -04:00
klingliu
1437b16bfc Change outputs from strings to maps 2021-06-29 12:20:04 -04:00
klingliu
4c2db8a19a Add rumad variation 2021-06-29 12:15:37 -04:00
Shuzo Katayama
98270691e0 fuel cost working 2021-06-24 17:18:19 -04:00
Shuzo Katayama
6def4035c3 train-and-test function added 2021-06-22 16:41:55 -04:00
Shuzo Katayama
62ac9e570c user specified path 2021-06-22 12:39:09 -04:00
Lee Spector
522ca181f9
Merge pull request #16 from thelmuth/master
Added example for how to use datasets for PSB2.
2021-06-20 06:58:14 -04:00
Tom Helmuth
e6a0b05e8e Added example for how to use datasets for PSB2. 2021-06-19 22:55:17 -04:00
Lee Spector
6fa77812ec Merge remote-tracking branch 'origin/master' 2021-06-16 16:09:42 -04:00
Lee Spector
48a1a18a37 Update propeller.iml 2021-06-16 16:07:18 -04:00
Lee Spector
d7c26902ca
Merge pull request #15 from NicMcPhee/test-string-instructions
Test string instructions
2021-04-29 17:23:56 -04:00
Lee Spector
fcefa83afc
Merge pull request #14 from NicMcPhee/limit-type-size
Limit type size
2021-04-29 17:22:36 -04:00
Lee Spector
209e256913 Handle -main args correctly in REPL or from command line; update README for specifying problem 2021-04-22 20:39:23 -04:00
Lee Spector
6dac92f15f Add deep_dup instructions 2021-04-22 20:21:24 -04:00
Lee Spector
1b1623aa73
Merge pull request #13 from mcgirjau/polymorphic-fix
Fix polymorphic stack instructions
2021-04-19 17:41:19 -04:00
mcgirjau
847372ea1a Fix polymorphic stack instructions 2021-04-19 17:28:24 -04:00
Erik Rauer
24630072ed Add tests for string/iterate
This adds a test for the `string/iterate` instruction
2021-04-15 16:24:06 -05:00
Erik Rauer
07ef1d3f90 Add tests for string/substr and str/take
This adds tests for the `string/substr` and `str/take` instructions.
2021-04-15 16:03:57 -05:00
Erik Rauer
1628e669b6 Add a test for string/split
This adds a test for the `string/split` instruction
2021-04-15 15:12:42 -05:00
Erik Rauer
e3d7963355 Fix string/set-char
This changes `string/set-char` to throw `:ignore-instruction` when the string is empty. Otherwise the instruction throws a Divide by Zero error.
2021-04-01 12:04:56 -05:00
Erik Rauer
27bd7b6eb6 Add a test for string/set-char
This adds a test for the `string/set-char` instruction
2021-04-01 12:03:34 -05:00
Erik Rauer
711fc20f01 Add a test for string/reverse
This adds a test for the `string/reverse` instruction
2021-04-01 11:30:02 -05:00
Erik Rauer
7e780567ec Add test for string/rest
This adds a test for the `string/rest` instruction
2021-04-01 11:26:55 -05:00
Erik Rauer
5cc3a02002 Fix replace-char-spec to use the correct function
This changes `replace-char-spec` to actually use `check-replace-char` instead of `check-replace`
2021-04-01 11:20:40 -05:00
Erik Rauer
3cdc2f7fe5 Add a test for string/replace-first-char
This adds a test for the `string/replace-first-char` instruction
2021-04-01 11:19:09 -05:00
Erik Rauer
110679d8f7 Add a test for string/replace-first
This adds a test for the `string/replace-first` instruction
2021-04-01 11:15:40 -05:00
Erik Rauer
3fb35d7d47 Add a test for string/replace-char
This adds a test for the `string/replace-char` instruction
2021-04-01 11:12:26 -05:00
Erik Rauer
95cad31e7b Add a test for string/replace
This adds a test for the `string/replace` instruction
2021-04-01 11:07:01 -05:00
Erik Rauer
da22da5014 Add a test for string/remove-char
This adds a test for the `string/remove-char` instruction
2021-04-01 10:59:38 -05:00
Erik Rauer
95cab60576 Add a test for string/parse-to-chars
This adds a test for the `string/parse-to-chars` instruction.
2021-04-01 10:55:21 -05:00
Erik Rauer
0655a5748f Add a test for string/occurencesof_char
This adds a test for the `string/occurencesof_char` instruction.
2021-04-01 10:49:57 -05:00
Erik Rauer
695e08506e Fix string/nth instruction
This changes `string/nth` to return `:ignore-instruction` when the string is empty. Otherwise it would throw an error due to dividing by zero.
2021-03-29 21:05:35 -05:00
Erik Rauer
8e361225ae Add test for string/nth
This adds a test for the `string/nth` instruction
2021-03-29 21:01:27 -05:00
Erik Rauer
da117c2f08 Update the test for string/length
Changes the test for the `string/length` instruction to check for an `:ignore-instruction` when the string is empty.
2021-03-23 22:47:46 -05:00
Erik Rauer
7aad934b96 Change string/last
Changes `string/last` to return `:ignore-instruction` if the given string is empty
2021-03-23 22:42:49 -05:00
Erik Rauer
acdc225c71 Add a test for string/length
This adds a test for the `string/length` instruction
2021-03-23 22:30:18 -05:00
Erik Rauer
c270ce6c1a Add test for string/last
This adds a test for the `string/last` instruction
2021-03-23 22:18:28 -05:00
Erik Rauer
9cd4f875c2 Fix string/indexof-char
Changes `string/indexof-char` to return :ignore-instruction if the character is not present in the string. This makes it consistent with it's description
2021-03-21 01:02:11 -05:00
Erik Rauer
92cdfe9e59 Add a test for string/indexof-char
This adds a test for the `string/indexof-char` instruction
2021-03-21 00:39:25 -05:00
Erik Rauer
b8a011c385 Add a test for string/from-float
This adds a test for the `string/from-float` instruction
2021-03-18 23:16:41 -05:00
Erik Rauer
2da8ef6de5 Add a test for string/from-char
This adds a test for the `string/from-char` instruction
2021-03-18 23:11:31 -05:00
Erik Rauer
d3b876492c Add a test for string/from-char
This adds a test for the `string/from-char` instruction
2021-03-18 23:05:13 -05:00
Erik Rauer
196f39ccb6 Add a test for string/from-boolean
This adds a test for the `string/from-boolean` instruction
2021-03-18 23:01:09 -05:00
Erik Rauer
39a25fa7e3 Change the string/first instruction
This changes the `string/first` instruction to return :ignore-instruction if the string is empty.
2021-03-18 22:49:44 -05:00