• R/O
  • SSH

kink: Commit

Kink runtime


Commit MetaInfo

Revisionc98149e4a32c13ba955bfcc53c9405d91accd50c (tree)
Time2020-02-09 14:02:36
Authormiyakawataku
Commitermiyakawataku

Log Message

rename DAY_OF_WEEK.day_of_week? to DAY_OF_WEEK.is?

Change Summary

Incremental Difference

diff -r efd80ca26853 -r c98149e4a32c src/main/resources/kink-mods/kink/datetime/DAY_OF_WEEK.kn
--- a/src/main/resources/kink-mods/kink/datetime/DAY_OF_WEEK.kn Sun Feb 09 13:52:42 2020 +0900
+++ b/src/main/resources/kink-mods/kink/datetime/DAY_OF_WEEK.kn Sun Feb 09 14:02:36 2020 +0900
@@ -177,10 +177,10 @@
177177
178178 :Sunday <- _new_dow('sunday' 7)
179179
180-## DAY_OF_WEEK.day_of_week?(Val)
180+## DAY_OF_WEEK.is?(Val)
181181 #
182-# “day_of_week?” fun returns whether Val is a day_of_week val.
183-:day_of_week? <- {(:Val)
182+# DAY_OF_WEEK.is? fun returns whether Val is a day_of_week val.
183+:is? <- {(:Val)
184184 Dows.for_any?{(:Dow) Dow.val_id == Val.val_id }
185185 }
186186
diff -r efd80ca26853 -r c98149e4a32c src/test/kink/datetime/DAY_OF_WEEK_test.kn
--- a/src/test/kink/datetime/DAY_OF_WEEK_test.kn Sun Feb 09 13:52:42 2020 +0900
+++ b/src/test/kink/datetime/DAY_OF_WEEK_test.kn Sun Feb 09 14:02:36 2020 +0900
@@ -64,17 +64,17 @@
6464 }
6565
6666 # }}}1
67-TEST.group('DAY_OF_WEEK.day_of_week?'){ # {{{1
67+TEST.group('DAY_OF_WEEK.is?'){ # {{{1
6868 TEST.test('nada is not a day_of_week'){
69- DAY_OF_WEEK.day_of_week?(nada) && raise('got true')
69+ DAY_OF_WEEK.is?(nada) && raise('got true')
7070 }
7171
7272 TEST.test('monday is a day_of_week'){
73- DAY_OF_WEEK.day_of_week?(DAY_OF_WEEK.monday) || raise('got false')
73+ DAY_OF_WEEK.is?(DAY_OF_WEEK.monday) || raise('got false')
7474 }
7575
7676 TEST.test('sunday is a day_of_week'){
77- DAY_OF_WEEK.day_of_week?(DAY_OF_WEEK.sunday) || raise('got false')
77+ DAY_OF_WEEK.is?(DAY_OF_WEEK.sunday) || raise('got false')
7878 }
7979 }
8080
Show on old repository browser