Commit Graph

305 Commits

Author SHA1 Message Date
Tom Alexander
189dfb1755
Fix tests. 2020-05-16 22:39:29 -04:00
Tom Alexander
c905e705ff
Transition to new literals compiling.
Tests still need work, as does the implementation for json.
2020-05-16 22:31:40 -04:00
Tom Alexander
bc25c1ee16
Starting to remove the old RValues. 2020-05-16 22:19:51 -04:00
Tom Alexander
16d8891452
Implement partial_compare for OwnedLiteral. 2020-05-16 22:08:03 -04:00
Tom Alexander
bf35fd0ae4
equals implementation for literal. 2020-05-16 22:02:58 -04:00
Tom Alexander
6519add838
Starting an OwnedLiteral type instead of using rust's built-in primitives. 2020-05-16 21:52:44 -04:00
Tom Alexander
dd160c5708
Hitting an infinite loop on compare string and int. 2020-05-16 21:34:45 -04:00
Tom Alexander
054480b797
First stab at fixing the error, not a full success. 2020-05-16 21:30:51 -04:00
Tom Alexander
974ce96f14
Merge branch 'dust_helpers' into render 2020-05-16 19:07:03 -04:00
Tom Alexander
ce8b73f87a
Implement less than or equals. 2020-05-16 19:06:40 -04:00
Tom Alexander
30b7324049
Implement less-than. 2020-05-16 19:05:03 -04:00
Tom Alexander
496a5e0ac7
Had to manually interpret the partial_cmp output instead of using the built-in operators since gte confusingly returns true for mismatched values. 2020-05-16 18:36:47 -04:00
Tom Alexander
62cd73f9c9
Initial attempt at implementation, tests not working. 2020-05-16 18:28:23 -04:00
Tom Alexander
7cde89c601
Merge branch 'helper_greater_than' into dust_helpers 2020-05-16 18:23:00 -04:00
Tom Alexander
0cfe67311e
Comment out the unicode literals test because unicode breaks nom.
Will have to write my own parsers to handle unicode.
2020-05-16 18:21:10 -04:00
Tom Alexander
f640cb0440
Fixed greater than helper by using rust's PartialOrd implementation for Vec. 2020-05-16 18:16:07 -04:00
Tom Alexander
7126e83d9a
Added tests for non-congruous arrays. 2020-05-16 17:53:57 -04:00
Tom Alexander
b53a9e1837
Cleaning up and factoring out reused code in the renderer. 2020-05-16 17:17:43 -04:00
Tom Alexander
0f90fa2c7e
Add support for ignoring tests by prefixing their name with an underscore. 2020-05-16 16:46:39 -04:00
Tom Alexander
6758d515f1
Have greater than helper very close to correct. Just need to make it compare arrays of scalars. 2020-05-16 16:24:36 -04:00
Tom Alexander
48e35c54bb
Add tests for less than and less than or equal to. 2020-05-16 15:51:40 -04:00
Tom Alexander
02abee1c53
Add a test for gte. 2020-05-16 15:45:57 -04:00
Tom Alexander
7d4cb14530
Add that check to the not-equals helper and update the json value implementation to mark all non-scalars as not-equals. 2020-05-16 15:30:17 -04:00
Tom Alexander
41e4874d75
Add a check to the equality helper to mark identical paths as equal. 2020-05-16 15:22:48 -04:00
Tom Alexander
d751df6fd5
Add tests for copied values. 2020-05-16 14:48:04 -04:00
Tom Alexander
6dbeb77a28
Add arrays to all helpers tests. 2020-05-16 14:19:56 -04:00
Tom Alexander
2b5bec05be
Implemented partial_compare for scalar json values. 2020-05-16 14:08:59 -04:00
Tom Alexander
71e6da39ee
Add a test for boolean comparison. 2020-05-16 13:46:31 -04:00
Tom Alexander
563fd1f6db
Starting comparison of json value to json value. 2020-05-16 13:44:34 -04:00
Tom Alexander
9851a2556d
Ordering implementation for comparison between json and literals. 2020-05-16 13:40:56 -04:00
Tom Alexander
8748cb7063
Structure for ordering, need to implement for serde_json::Value. 2020-05-16 13:31:52 -04:00
Tom Alexander
8a44bc6fd9
Add greater-than-specific tests to investigate string ordering. 2020-05-16 13:06:52 -04:00
Tom Alexander
f390c05a4c
Finished porting over the equality test to greater than. 2020-05-16 13:00:09 -04:00
Tom Alexander
196740ae34
Starting the greater than helper tests. 2020-05-16 12:51:27 -04:00
Tom Alexander
ed7b1f5b3e
Merge branch 'helper_not_equals' into dust_helpers 2020-05-16 12:27:01 -04:00
Tom Alexander
f4a935224c
Implemented the not equals helper. 2020-05-16 12:26:28 -04:00
Tom Alexander
94cedef3ef
Added a test for not equals which is roughly a copy of the equals test. 2020-05-16 12:23:08 -04:00
Tom Alexander
e04a0be5e7
Add the rest of the helpers to the recursive extract inline partials function. 2020-05-16 12:13:40 -04:00
Tom Alexander
3c85717952
Merge branch 'remove_lifetime_from_context_elements' into dust_helpers 2020-05-10 23:43:19 -04:00
Tom Alexander
1b63bc4083
Add a test for integer literals. 2020-05-10 23:42:56 -04:00
Tom Alexander
6e6560c742
Revived the tests. 2020-05-10 23:38:59 -04:00
Tom Alexander
c88cab8316
Hook in the integer parser. 2020-05-10 23:13:25 -04:00
Tom Alexander
9ee8f41022
Implement the render send of integer literals. 2020-05-10 23:11:16 -04:00
Tom Alexander
79099a8654
Parsing positive integers. 2020-05-10 23:02:21 -04:00
Tom Alexander
7dd824ab4f
cleaning up. 2020-05-10 22:40:47 -04:00
Tom Alexander
68639481f5
Implement a real clone for ParametersContext. 2020-05-10 22:35:17 -04:00
Tom Alexander
46bb5558ac
Going to a more generic equality comparison for json. 2020-05-10 22:26:47 -04:00
Tom Alexander
6297fa0189
Rename NewParametersContext to ParametersContext. 2020-05-10 22:21:18 -04:00
Tom Alexander
75ba35a422
Cleaning up. 2020-05-10 22:20:39 -04:00
Tom Alexander
6261f7881c
Manual equals is working! 2020-05-10 22:14:07 -04:00