• R/O
  • SSH

kink: Commit

Kink runtime


Commit MetaInfo

Revisiond42f32c87eaa339fbadbc803868b0bfa23c51da8 (tree)
Time2020-02-11 12:10:43
Authormiyakawataku
Commitermiyakawataku

Log Message

rename REGEX.regex? to REGEX.is?

Change Summary

Incremental Difference

diff -r 8f4049921522 -r d42f32c87eaa src/main/resources/kink-mods/kink/host_lang/java/REGEX.kn
--- a/src/main/resources/kink-mods/kink/host_lang/java/REGEX.kn Mon Feb 10 23:39:29 2020 +0900
+++ b/src/main/resources/kink-mods/kink/host_lang/java/REGEX.kn Tue Feb 11 12:10:43 2020 +0900
@@ -351,10 +351,10 @@
351351
352352 # }}}1
353353
354-## REGEX.regex?(Val)
354+## REGEX.is?(Val)
355355 #
356-# REGEX.regex? returns whether the Val is a regex.
357-:regex? <- {(:Val)
356+# REGEX.is? returns whether the Val is a regex.
357+:is? <- {(:Val)
358358 Val.var_syms.have_all?(Regex_syms)
359359 }
360360
diff -r 8f4049921522 -r d42f32c87eaa src/test/kink/host_lang/java/REGEX_test.kn
--- a/src/test/kink/host_lang/java/REGEX_test.kn Mon Feb 10 23:39:29 2020 +0900
+++ b/src/test/kink/host_lang/java/REGEX_test.kn Tue Feb 11 12:10:43 2020 +0900
@@ -41,13 +41,13 @@
4141 }
4242
4343 # }}}1
44-TEST.group('REGEX.regex?'){ # {{{1
44+TEST.group('REGEX.is?'){ # {{{1
4545 TEST.test('is a regex'){
46- REGEX.regex?(regex('[a-z]+')) || raise('got false')
46+ REGEX.is?(regex('[a-z]+')) || raise('got false')
4747 }
4848
4949 TEST.test('not a regex'){
50- REGEX.regex?(nada) && raise('got true')
50+ REGEX.is?(nada) && raise('got true')
5151 }
5252 }
5353
Show on old repository browser