• R/O
  • SSH

kink: Commit

Kink runtime


Commit MetaInfo

Revisionb3aeb229a31f28e677ca8fe28d692463b0d159a4 (tree)
Time2020-02-09 13:44:44
Authormiyakawataku
Commitermiyakawataku

Log Message

rename SET.set? to SET.is?

Change Summary

Incremental Difference

diff -r a03d5e642d4a -r b3aeb229a31f src/main/resources/kink-mods/kink/container/SET.kn
--- a/src/main/resources/kink-mods/kink/container/SET.kn Sun Feb 09 13:32:26 2020 +0900
+++ b/src/main/resources/kink-mods/kink/container/SET.kn Sun Feb 09 13:44:44 2020 +0900
@@ -365,10 +365,10 @@
365365 # }}}1
366366 # SET.set?(Val) {{{1
367367
368-## SET.set?(Val)
368+## SET.is?(Val)
369369 #
370-# SET.set? returns whether the Val is a set.
371-:set? <- {(:Val)
370+# SET.is? returns whether the Val is a set.
371+:is? <- {(:Val)
372372 Val.var_syms.have_all?(Set_syms)
373373 }
374374
diff -r a03d5e642d4a -r b3aeb229a31f src/test/kink/container/FLAT_SET_test.kn
--- a/src/test/kink/container/FLAT_SET_test.kn Sun Feb 09 13:32:26 2020 +0900
+++ b/src/test/kink/container/FLAT_SET_test.kn Sun Feb 09 13:44:44 2020 +0900
@@ -22,7 +22,7 @@
2222 TEST.group('type test'){ # {{{1
2323 TEST.test('Flat_set is a set'){
2424 :Set = _new_set
25- SET.set?(Set) || raise('got false')
25+ SET.is?(Set) || raise('got false')
2626 }
2727
2828 TEST.test('Flat_set is an ordered_set'){
diff -r a03d5e642d4a -r b3aeb229a31f src/test/kink/container/HASH_SET_test.kn
--- a/src/test/kink/container/HASH_SET_test.kn Sun Feb 09 13:32:26 2020 +0900
+++ b/src/test/kink/container/HASH_SET_test.kn Sun Feb 09 13:44:44 2020 +0900
@@ -52,7 +52,7 @@
5252 TEST.group('type test'){ # {{{1
5353 TEST.test('Hash_set is a set'){
5454 :Set = _new_set
55- SET.set?(Set) || raise('got false')
55+ SET.is?(Set) || raise('got false')
5656 }
5757 }
5858
diff -r a03d5e642d4a -r b3aeb229a31f src/test/kink/container/SET_test.kn
--- a/src/test/kink/container/SET_test.kn Sun Feb 09 13:32:26 2020 +0900
+++ b/src/test/kink/container/SET_test.kn Sun Feb 09 13:44:44 2020 +0900
@@ -6,14 +6,14 @@
66
77 :TEST.require_from('kink/test/')
88
9-TEST.group('SET.set?'){ # {{{1
9+TEST.group('SET.is?'){ # {{{1
1010 TEST.test('returns true for set'){
1111 :Set = HASH_SET.new{(:Item) Item.val_id }
12- SET.set?(Set) || raise('got false')
12+ SET.is?(Set) || raise('got false')
1313 }
1414
1515 TEST.test('returns false for non-set val'){
16- SET.set?(nada) && raise('got true')
16+ SET.is?(nada) && raise('got true')
1717 }
1818 }
1919
diff -r a03d5e642d4a -r b3aeb229a31f src/test/kink/container/TREE_SET_test.kn
--- a/src/test/kink/container/TREE_SET_test.kn Sun Feb 09 13:32:26 2020 +0900
+++ b/src/test/kink/container/TREE_SET_test.kn Sun Feb 09 13:44:44 2020 +0900
@@ -31,7 +31,7 @@
3131 TEST.group('type test'){ # {{{1
3232 TEST.test('Tree_set is a set'){
3333 :Set = _new_set
34- SET.set?(Set) || raise('got false')
34+ SET.is?(Set) || raise('got false')
3535 }
3636
3737 TEST.test('Tree_set is an ordered_set'){
Show on old repository browser