• R/O
  • SSH

kink: Commit

Kink runtime


Commit MetaInfo

Revisionb02a17530c2ba76240a470ee9d2fe6c0e5f5bfe9 (tree)
Time2020-02-12 20:38:49
Authormiyakawataku
Commitermiyakawataku

Log Message

rename ITER.iter? to ITER.is?

Change Summary

Incremental Difference

diff -r 9d5c510b6500 -r b02a17530c2b src/main/resources/kink-mods/kink/iter/ITER.kn
--- a/src/main/resources/kink-mods/kink/iter/ITER.kn Wed Feb 12 20:31:13 2020 +0900
+++ b/src/main/resources/kink-mods/kink/iter/ITER.kn Wed Feb 12 20:38:49 2020 +0900
@@ -4,11 +4,10 @@
44 :IFUN.require_from('kink/iter/')
55 :NUM.require_from('kink/')
66
7-## ITER.iter?(Val)
7+## ITER.is?(Val)
88 #
9-# Returns true if the Val is an iter,
10-# or false otherwise.
11-:iter? <- {(:Val)
9+# ITER.is? returns whether the Val is an iter.
10+:is? <- {(:Val)
1211 Val.var_syms.have_all?(Iter_syms)
1312 }
1413
diff -r 9d5c510b6500 -r b02a17530c2b src/test/kink/TRACE_test.kn
--- a/src/test/kink/TRACE_test.kn Wed Feb 12 20:31:13 2020 +0900
+++ b/src/test/kink/TRACE_test.kn Wed Feb 12 20:38:49 2020 +0900
@@ -104,7 +104,7 @@
104104 T.loc(LOC.new('foo.kn' Src 8))
105105 }
106106 :Iter = TRACE.format_traces('boo' [T1 T2 T3 TRACE.snip])
107- ITER.iter?(Iter) || raise('got false')
107+ ITER.is?(Iter) || raise('got false')
108108 :Vec = VEC.of_each(Iter)
109109 :Expected = [
110110 'exception traces: from oldest to newest'
diff -r 9d5c510b6500 -r b02a17530c2b src/test/kink/host_lang/java/REGEX_test.kn
--- a/src/test/kink/host_lang/java/REGEX_test.kn Wed Feb 12 20:31:13 2020 +0900
+++ b/src/test/kink/host_lang/java/REGEX_test.kn Wed Feb 12 20:38:49 2020 +0900
@@ -251,7 +251,7 @@
251251 TEST.group('Regex.search_all'){ # {{{1
252252 TEST.test('returns iter'){
253253 :Iter = regex('[a-z]+').search_all('foo bar baz')
254- ITER.iter?(Iter) || raise('got {}'.format(Iter.repr))
254+ ITER.is?(Iter) || raise('got {}'.format(Iter.repr))
255255 }
256256
257257 TEST.test('multiple matches'){
diff -r 9d5c510b6500 -r b02a17530c2b src/test/kink/iter/ITER_test.kn
--- a/src/test/kink/iter/ITER_test.kn Wed Feb 12 20:31:13 2020 +0900
+++ b/src/test/kink/iter/ITER_test.kn Wed Feb 12 20:38:49 2020 +0900
@@ -21,14 +21,14 @@
2121 V
2222 }
2323
24-TEST.group('ITER.iter?'){ # {{{1
24+TEST.group('ITER.is?'){ # {{{1
2525 TEST.test('true for iter'){
2626 :Iter = _iter(1 2 3)
27- ITER.iter?(Iter) || raise('got false')
27+ ITER.is?(Iter) || raise('got false')
2828 }
2929
3030 TEST.test('false for non-iter'){
31- ITER.iter?(nada) && raise('got true')
31+ ITER.is?(nada) && raise('got true')
3232 }
3333 }
3434
Show on old repository browser