Update 01_equalities.clj
This commit is contained in:
parent
586b197282
commit
16f23e0f17
1 changed files with 12 additions and 12 deletions
|
|
@ -2,38 +2,38 @@
|
||||||
(:require [koan-engine.core :refer :all]))
|
(:require [koan-engine.core :refer :all]))
|
||||||
|
|
||||||
(meditations
|
(meditations
|
||||||
"We shall contemplate truth by testing reality, via equality"
|
"Критерием истины является тест на равенство"
|
||||||
(= __ true)
|
(= __ true)
|
||||||
|
|
||||||
"To understand reality, we must compare our expectations against reality"
|
"Проверять истинность нужно сравнением исходного с предположением"
|
||||||
(= __ (+ 1 1))
|
(= __ (+ 1 1))
|
||||||
|
|
||||||
"You can test equality of many things"
|
"Тестировать на равенство можно многое"
|
||||||
(= (+ 3 4) 7 (+ 2 __))
|
(= (+ 3 4) 7 (+ 2 __))
|
||||||
|
|
||||||
"Some things may appear different, but be the same"
|
"Что-то может показаться отличным, но оставаться равным"
|
||||||
(= __ (= 2 2/1))
|
(= __ (= 2 2/1))
|
||||||
|
|
||||||
"You cannot generally float to heavens of integers"
|
"Целое не равно дробному"
|
||||||
(= __ (= 2 2.0))
|
(= __ (= 2 2.0))
|
||||||
|
|
||||||
"But a looser equality is also possible"
|
"Хотя может быть равнозначно"
|
||||||
(= __ (== 2.0 2))
|
(= __ (== 2.0 2))
|
||||||
|
|
||||||
"Something is not equal to nothing"
|
"Ничто не равно чему-либо"
|
||||||
(= __ (not (= 1 nil)))
|
(= __ (not (= 1 nil)))
|
||||||
|
|
||||||
"Strings, and keywords, and symbols: oh my!"
|
"Строки, ключи, символы!!!"
|
||||||
(= __ (= "hello" :hello 'hello))
|
(= __ (= "hello" :hello 'hello))
|
||||||
|
|
||||||
"Make a keyword with your keyboard"
|
"Создавайте ключевые слова используя обычные"
|
||||||
(= :hello (keyword __))
|
(= :hello (keyword __))
|
||||||
|
|
||||||
"Symbolism is all around us"
|
"Кругом символизм"
|
||||||
(= 'hello (symbol __))
|
(= 'hello (symbol __))
|
||||||
|
|
||||||
"What could be equivalent to nothing?"
|
"Так чему же равно ничто?"
|
||||||
(= __ nil)
|
(= __ nil)
|
||||||
|
|
||||||
"When things cannot be equal, they must be different"
|
"Разное не равно"
|
||||||
(not= :fill-in-the-blank __))
|
(not= :fill-in-the-blank __))
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue