Simplifying.
This commit is contained in:
parent
0d48b5add8
commit
43e8da1780
@ -53,12 +53,12 @@ compile [bytes %start to %stop of %text] to (..)
|
|||||||
test:
|
test:
|
||||||
assume (("asdf" capitalized) == "Asdf")
|
assume (("asdf" capitalized) == "Asdf")
|
||||||
compile [capitalized %text, %text capitalized] to (..)
|
compile [capitalized %text, %text capitalized] to (..)
|
||||||
Lua value "((\(%text as lua expr)):gsub('%l', string.upper, 1))"
|
Lua value "(\(%text as lua expr)):gsub('%l', string.upper, 1)"
|
||||||
|
|
||||||
test:
|
test:
|
||||||
assume (("asdf" uppercase) == "ASDF")
|
assume (("asdf" uppercase) == "ASDF")
|
||||||
compile [uppercase %text, %text uppercase] to (..)
|
compile [uppercase %text, %text uppercase] to (..)
|
||||||
Lua value "((\(%text as lua expr)):gsub('%l', string.upper))"
|
Lua value "(\(%text as lua expr)):upper()"
|
||||||
|
|
||||||
test:
|
test:
|
||||||
assume (("asdf" with "X" instead of "s") == "aXdf") or barf ".."
|
assume (("asdf" with "X" instead of "s") == "aXdf") or barf ".."
|
||||||
|
Loading…
Reference in New Issue
Block a user