• R/O
  • SSH

kink: Commit

Kink runtime


Commit MetaInfo

Revision3d11421ca45a9f31110108084fb7dd418f52c958 (tree)
Time2020-02-09 14:17:25
Authormiyakawataku
Commitermiyakawataku

Log Message

rename OFFSET_DATE_TIME.offset_date_time? to OFFSET_DATE_TIME.is?

Change Summary

Incremental Difference

diff -r fb336cbd3288 -r 3d11421ca45a src/main/resources/kink-mods/kink/datetime/OFFSET_DATE_TIME.kn
--- a/src/main/resources/kink-mods/kink/datetime/OFFSET_DATE_TIME.kn Sun Feb 09 14:11:59 2020 +0900
+++ b/src/main/resources/kink-mods/kink/datetime/OFFSET_DATE_TIME.kn Sun Feb 09 14:17:25 2020 +0900
@@ -245,10 +245,10 @@
245245 )
246246 }
247247
248-## OFFSET_DATE_TIME.offset_date_time?(Val)
248+## OFFSET_DATE_TIME.is?(Val)
249249 #
250-# “offset_date_time?” returns whether Val is an offset_date_time val.
251-:offset_date_time? <- {(:Val)
250+# OFFSET_DATE_TIME.is? returns whether Val is an offset_date_time val.
251+:is? <- {(:Val)
252252 Val.var_syms.have_all?(Odt_syms)
253253 }
254254
diff -r fb336cbd3288 -r 3d11421ca45a src/test/kink/datetime/OFFSET_DATE_TIME_test.kn
--- a/src/test/kink/datetime/OFFSET_DATE_TIME_test.kn Sun Feb 09 14:11:59 2020 +0900
+++ b/src/test/kink/datetime/OFFSET_DATE_TIME_test.kn Sun Feb 09 14:17:25 2020 +0900
@@ -377,14 +377,14 @@
377377 }
378378
379379 # }}}1
380-TEST.group('OFFSET_DATE_TIME.offset_date_time?'){ # {{{1
380+TEST.group('OFFSET_DATE_TIME.is?'){ # {{{1
381381 TEST.test('true for odt'){
382382 :Odt = OFFSET_DATE_TIME.new(2020 1 12 15 20 56.123456789 UTC_OFFSET.new(9 * 60))
383- OFFSET_DATE_TIME.offset_date_time?(Odt) || raise('got false')
383+ OFFSET_DATE_TIME.is?(Odt) || raise('got false')
384384 }
385385
386386 TEST.test('false for nada'){
387- OFFSET_DATE_TIME.offset_date_time?(nada) && raise('got true')
387+ OFFSET_DATE_TIME.is?(nada) && raise('got true')
388388 }
389389 }
390390
Show on old repository browser