Skip to content

Commit

Permalink
cleanups; bump 0.0.14
Browse files Browse the repository at this point in the history
  • Loading branch information
tiye committed Jun 16, 2021
1 parent 8e5f0c9 commit a81ca28
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion package.json
@@ -1,6 +1,6 @@
{
"name": "@calcit/ternary-tree",
"version": "0.0.13",
"version": "0.0.14",
"main": "./lib/index.js",
"devDependencies": {
"prettier": "^2.2.1",
Expand Down
6 changes: 3 additions & 3 deletions src/test-map.ts
Expand Up @@ -45,7 +45,7 @@ export let runMapTests = () => {
checkMapStructure(data11);

// echo data10
justDisplay(formatMapInline(data10), "((2:12 3:13 7:17) ((_ 9:19 _) (6:16 _ 5:15) (_ 1:11 _)) (8:18 0:10 4:14))");
justDisplay(formatMapInline(data10, true), " ((0:10 1:11 2:12) (3:13 (4:14 5:15 _) 6:16) (7:17 8:18 9:19))");

check(deepEqual(toHashSortedPairs(data10), inList));
check(deepEqual(toHashSortedPairs(data11), inList));
Expand Down Expand Up @@ -86,8 +86,8 @@ export let runMapTests = () => {
check(contains(data, "12") == false);
checkMapStructure(data);

justDisplay(formatMapInline(assocMap(data, "1", 2222), false), "((2:12 3:13 7:17) ((_ 9:19 _) (6:16 _ 5:15) (_ 1:2222 _)) (8:18 0:10 4:14))");
justDisplay(formatMapInline(assocMap(data, "23", 2222), false), "((2:12 3:13 7:17) ((_ 9:19 _) (6:16 _ 5:15) (23:2222 1:11 _)) (8:18 0:10 4:14))");
justDisplay(formatMapInline(assocMap(data, "1", 2222), true), "((0:10 1:2222 2:12) (3:13 (4:14 5:15 _) 6:16) (7:17 8:18 9:19))");
justDisplay(formatMapInline(assocMap(data, "23", 2222), true), "(((0:10 1:11 2:12) (3:13 (4:14 5:15 _) 6:16) (7:17 8:18 9:19)) 23:2222 _)");
});

test("dissoc", () => {
Expand Down

0 comments on commit a81ca28

Please sign in to comment.