this repo has no description
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

use assert syntax

+4 -6
+4 -6
test/houdini_test.gleam
··· 1 1 import gleam/list 2 2 import gleam/string 3 3 import gleeunit 4 - import gleeunit/should 5 4 import houdini 6 5 import qcheck.{type Generator} 7 6 ··· 19 18 20 19 pub fn simple_conversions_test() { 21 20 use #(value, escaped) <- list.each(conversions) 22 - houdini.escape(value) |> should.equal(escaped) 21 + assert houdini.escape(value) == escaped 23 22 } 24 23 25 24 pub fn strange_unicode_string_test() { 26 25 let input = ">a>'ࣉa>aa<a'>><\"aa&aࣉ>aࣉaaaa>ࣉa\"a'&a<<<&\"aaa\"&a>aa\">><'ࣉ\"" 27 - houdini.escape(input) |> should.equal(escaped(input)) 26 + assert houdini.escape(input) == escaped(input) 28 27 } 29 28 30 29 pub fn regular_string_is_left_unchanged_test() { ··· 34 33 ]) 35 34 36 35 use regular_string <- given(qcheck.string_from(codepoints)) 37 - houdini.escape(regular_string) |> should.equal(regular_string) 36 + assert houdini.escape(regular_string) == regular_string 38 37 } 39 38 40 39 pub fn string_with_special_characters_is_escaped_test() { ··· 44 43 ]) 45 44 46 45 use string <- given(qcheck.string_from(codepoints)) 47 - houdini.escape(string) 48 - |> should.equal(escaped(string)) 46 + assert houdini.escape(string) == escaped(string) 49 47 } 50 48 51 49 // --- PROPERTY HELPERS --------------------------------------------------------