• R/O
  • SSH

kink: Commit

Kink runtime


Commit MetaInfo

Revisionb4a5bcd61fc7d41e356e7caae108db43a59b5c15 (tree)
Time2020-02-08 14:41:35
Authormiyakawataku
Commitermiyakawataku

Log Message

rename ENV.env? to ENV.is?

Change Summary

Incremental Difference

diff -r de5072245d26 -r b4a5bcd61fc7 src/main/resources/kink-mods/kink/ENV.kn
--- a/src/main/resources/kink-mods/kink/ENV.kn Sat Feb 08 14:34:34 2020 +0900
+++ b/src/main/resources/kink-mods/kink/ENV.kn Sat Feb 08 14:41:35 2020 +0900
@@ -43,10 +43,10 @@
4343 Env_helper.call_method('newEnv' []).unwrap
4444 }
4545
46-## ENV.env?(Val)
46+## ENV.is?(Val)
4747 #
48-# Returns whether the Val is an env val.
49-:env? <- {(:Val)
48+# ENV.is? returns whether the Val is an env val.
49+:is? <- {(:Val)
5050 JAVA.wrap(Val).typable_as?(EnvVal_class)
5151 }
5252
diff -r de5072245d26 -r b4a5bcd61fc7 src/test/kink/ENV_test.kn
--- a/src/test/kink/ENV_test.kn Sat Feb 08 14:34:34 2020 +0900
+++ b/src/test/kink/ENV_test.kn Sat Feb 08 14:41:35 2020 +0900
@@ -7,18 +7,18 @@
77 TEST.group('ENV.new'){ # {{{1
88 TEST.test('makes a new env'){
99 :Env = ENV.new
10- ENV.env?(Env) || raise('got false')
10+ ENV.is?(Env) || raise('got false')
1111 }
1212 }
1313
1414 # }}}1
15-TEST.group('ENV.env?'){ # {{{1
15+TEST.group('ENV.is?'){ # {{{1
1616 TEST.test('true for env'){
17- ENV.env?(\env) || raise('got false')
17+ ENV.is?(\env) || raise('got false')
1818 }
1919
2020 TEST.test('false for not-env'){
21- ENV.env?(nada) && raise('got true')
21+ ENV.is?(nada) && raise('got true')
2222 }
2323 }
2424
Show on old repository browser