File tree Expand file tree Collapse file tree 1 file changed +12
-2
lines changed Expand file tree Collapse file tree 1 file changed +12
-2
lines changed Original file line number Diff line number Diff line change @@ -10,12 +10,17 @@ pub fn bit_string_test() {
10
10
""
11
11
|> dynamic . from
12
12
|> dynamic . bit_string
13
- |> should . equal ( Ok ( bit_string . from_string ( "" ) ) )
13
+ |> should . equal ( Ok ( << "" : utf8 >> ) )
14
14
15
15
"Hello"
16
16
|> dynamic . from
17
17
|> dynamic . bit_string
18
- |> should . equal ( Ok ( bit_string . from_string ( "Hello" ) ) )
18
+ |> should . equal ( Ok ( << "Hello" : utf8 >> ) )
19
+
20
+ << 0 , 2 >>
21
+ |> dynamic . from
22
+ |> dynamic . bit_string
23
+ |> should . equal ( Ok ( << 0 , 2 >> ) )
19
24
20
25
1
21
26
|> dynamic . from
@@ -39,6 +44,11 @@ pub fn string_test() {
39
44
|> dynamic . string
40
45
|> should . equal ( Ok ( "Hello" ) )
41
46
47
+ << 0 , 2 >>
48
+ |> dynamic . from
49
+ |> dynamic . string
50
+ |> should . equal ( Error ( "Expected a string, got a bit_string" ) )
51
+
42
52
1
43
53
|> dynamic . from
44
54
|> dynamic . string
You can’t perform that action at this time.
0 commit comments