Skip to content

Commit

Permalink
test: Test that 'false is also considered as boolean false in TOML
Browse files Browse the repository at this point in the history
  • Loading branch information
kaushalmodi committed Apr 29, 2022
1 parent bb85106 commit 6bbe740
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions test/tscalar.el
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,12 @@
(ert-deftest test-scalar-bool ()
(let ((inp '(((bool1 . t))
((bool2 . :false))
((bool3 . "false"))))
((bool3 . 'false))
((bool4 . "false"))))
(ref '("bool1 = true"
"bool2 = false"
"bool3 = false"))
"bool3 = false"
"bool4 = false"))
out)
(dolist (el inp)
(push (tomelr-encode el) out))
Expand Down

0 comments on commit 6bbe740

Please sign in to comment.