FuzzyJson basic feature

This commit is contained in:
2022-08-04 21:12:54 +00:00
parent 4701332c7a
commit 5ce27c9bc7
7 changed files with 61 additions and 0 deletions

9
src/kiss_tools/Main.kiss Normal file
View File

@@ -0,0 +1,9 @@
// Test FuzzyJson
(load "FuzzyJson.kiss")
(loadFuzzyJson "dogs" "test/fuzzy.json")
(loadFuzzyJson "dogs" "test/fuzzy2.json")
(assert (= "is a very good dog" (getFuzzyJson "dogs" "Albort")))
// duplicate definitions throw an error
(assertThrows (getFuzzyJson "dogs" "Rangie"))