• R/O
  • SSH

kink: Commit

Kink runtime


Commit MetaInfo

Revision6245902eb33bfff13535bf1e53aa47f6400bc6a6 (tree)
Time2020-02-08 15:02:46
Authormiyakawataku
Commitermiyakawataku

Log Message

rename NUM_DIV.num_div? to NUM_DIV.is?

Change Summary

Incremental Difference

diff -r 7f82245f99a0 -r 6245902eb33b src/main/resources/kink-mods/kink/NUM_DIV.kn
--- a/src/main/resources/kink-mods/kink/NUM_DIV.kn Sat Feb 08 14:57:31 2020 +0900
+++ b/src/main/resources/kink-mods/kink/NUM_DIV.kn Sat Feb 08 15:02:46 2020 +0900
@@ -303,10 +303,10 @@
303303 # var syms of num_div vals
304304 :Num_div_syms <- Num_div_trait.chunk(2).map{([:K :V]) K }
305305
306-## NUM_DIV.num_div?(Val)
306+## NUM_DIV.is?(Val)
307307 #
308-# NUM_DIV.num_div? returns whether Val is a num_div val.
309-:num_div? <- {(:Val)
308+# NUM_DIV.is? returns whether Val is a num_div val.
309+:is? <- {(:Val)
310310 Val.var_syms.have_all?(Num_div_syms)
311311 }
312312
diff -r 7f82245f99a0 -r 6245902eb33b src/test/kink/NUM_DIV_test.kn
--- a/src/test/kink/NUM_DIV_test.kn Sat Feb 08 14:57:31 2020 +0900
+++ b/src/test/kink/NUM_DIV_test.kn Sat Feb 08 15:02:46 2020 +0900
@@ -271,13 +271,13 @@
271271 }
272272
273273 # }}}1
274-TEST.group('NUM_DIV.num_div?'){ # {{{1
274+TEST.group('NUM_DIV.is?'){ # {{{1
275275 TEST.test('returns true for num_div'){
276- NUM_DIV.num_div?(NUM_DIV.new(1 2)) || raise('got false')
276+ NUM_DIV.is?(NUM_DIV.new(1 2)) || raise('got false')
277277 }
278278
279279 TEST.test('returns false for nada'){
280- NUM_DIV.num_div?(nada) && raise('got true')
280+ NUM_DIV.is?(nada) && raise('got true')
281281 }
282282 }
283283
Show on old repository browser