• R/O
  • SSH

kink: Commit

Kink runtime


Commit MetaInfo

Revisioncfeea241eec7964b0b25a30f99e2acc18535dfba (tree)
Time2020-02-11 12:21:42
Authormiyakawataku
Commitermiyakawataku

Log Message

rename SCANNER.scanner? to SCANNER.is?

Change Summary

Incremental Difference

diff -r 251db0e0f1a3 -r cfeea241eec7 src/main/resources/kink-mods/kink/io/SCANNER.kn
--- a/src/main/resources/kink-mods/kink/io/SCANNER.kn Tue Feb 11 12:17:55 2020 +0900
+++ b/src/main/resources/kink-mods/kink/io/SCANNER.kn Tue Feb 11 12:21:42 2020 +0900
@@ -267,10 +267,10 @@
267267 'scan_all'
268268 ]
269269
270-## SCANNER.scanner?(Val)
270+## SCANNER.is?(Val)
271271 #
272-# SCANNER.scanner? returns whether the Val is a scanner.
273-:scanner? <- {(:Val)
272+# SCANNER.is? returns whether the Val is a scanner.
273+:is? <- {(:Val)
274274 Val.var_syms.have_all?(Scanner_syms)
275275 }
276276
diff -r 251db0e0f1a3 -r cfeea241eec7 src/test/kink/io/SCANNER_test.kn
--- a/src/test/kink/io/SCANNER_test.kn Tue Feb 11 12:17:55 2020 +0900
+++ b/src/test/kink/io/SCANNER_test.kn Tue Feb 11 12:21:42 2020 +0900
@@ -9,14 +9,14 @@
99
1010 :TEST.require_from('kink/test/')
1111
12-# test SCANNER.scanner?(Val) {{{1
12+# test SCANNER.is?(Val) {{{1
1313
14-TEST.test('SCANNER.scanner?(Text_input) is true'){
15- SCANNER.scanner?(STR_SCANNER.new('hello')) || raise('got false')
14+TEST.test('SCANNER.is?(Text_input) is true'){
15+ SCANNER.is?(STR_SCANNER.new('hello')) || raise('got false')
1616 }
1717
18-TEST.test('SCANNER.scanner?(nada) is true'){
19- (! SCANNER.scanner?(nada)) || raise('got true')
18+TEST.test('SCANNER.is?(nada) is true'){
19+ (! SCANNER.is?(nada)) || raise('got true')
2020 }
2121
2222 # }}}1
diff -r 251db0e0f1a3 -r cfeea241eec7 src/test/kink/io/STR_SCANNER_test.kn
--- a/src/test/kink/io/STR_SCANNER_test.kn Tue Feb 11 12:17:55 2020 +0900
+++ b/src/test/kink/io/STR_SCANNER_test.kn Tue Feb 11 12:21:42 2020 +0900
@@ -16,7 +16,7 @@
1616 TEST.group('str_scanner'){ # {{{1
1717 TEST.test('is a scanner'){
1818 :S = STR_SCANNER.new('abcあ')
19- SCANNER.scanner?(S) || raise('got false')
19+ SCANNER.is?(S) || raise('got false')
2020 }
2121
2222 TEST.group('.scan_rune'){ # {{{2
Show on old repository browser