• R/O
  • SSH

kink: Commit

Kink runtime


Commit MetaInfo

Revision2c6c461dfdd7dc6e80f0c9aeeaa1ab8ffff844fb (tree)
Time2020-02-09 13:27:14
Authormiyakawataku
Commitermiyakawataku

Log Message

rename CHAN.chan?? to CHAN.is?

Change Summary

Incremental Difference

diff -r fe10cc618a1b -r 2c6c461dfdd7 src/main/resources/kink-mods/kink/chan/CHAN.kn
--- a/src/main/resources/kink-mods/kink/chan/CHAN.kn Sat Feb 08 15:18:09 2020 +0900
+++ b/src/main/resources/kink-mods/kink/chan/CHAN.kn Sun Feb 09 13:27:14 2020 +0900
@@ -244,10 +244,10 @@
244244
245245 # }}}1
246246
247-## CHAN.chan?(Val)
247+## CHAN.is?(Val)
248248 #
249-# CHAN.chan? returns whether Val is a chan.
250-:chan? <- {(:Val)
249+# CHAN.is? returns whether Val is a chan.
250+:is? <- {(:Val)
251251 Val.var_syms.have_all?(['send' 'recv' 'pin'])
252252 }
253253
diff -r fe10cc618a1b -r 2c6c461dfdd7 src/test/kink/chan/CHAN_test.kn
--- a/src/test/kink/chan/CHAN_test.kn Sat Feb 08 15:18:09 2020 +0900
+++ b/src/test/kink/chan/CHAN_test.kn Sun Feb 09 13:27:14 2020 +0900
@@ -194,19 +194,19 @@
194194
195195 # }}}1
196196
197-TEST.group('CHAN.chan?'){ # {{{1
197+TEST.group('CHAN.is?'){ # {{{1
198198 TEST.test('true for unbuffered chan'){
199199 :Ch = CHAN.new(0)
200- CHAN.chan?(Ch) || raise('got false')
200+ CHAN.is?(Ch) || raise('got false')
201201 }
202202
203203 TEST.test('true for buffered chan'){
204204 :Ch = CHAN.new(1)
205- CHAN.chan?(Ch) || raise('got false')
205+ CHAN.is?(Ch) || raise('got false')
206206 }
207207
208208 TEST.test('false for nada'){
209- CHAN.chan?(nada) && raise('got true')
209+ CHAN.is?(nada) && raise('got true')
210210 }
211211 }
212212
Show on old repository browser