File tree 2 files changed +19
-2
lines changed 2 files changed +19
-2
lines changed Original file line number Diff line number Diff line change @@ -28,6 +28,23 @@ use std::sync::{Arc, OnceLock};
28
28
29
29
mod simplification;
30
30
31
+ #[ test]
32
+ fn test_octet_length ( ) {
33
+ #[ rustfmt:: skip]
34
+ evaluate_expr_test (
35
+ octet_length ( col ( "list" ) ) ,
36
+ vec ! [
37
+ "+------+" ,
38
+ "| expr |" ,
39
+ "+------+" ,
40
+ "| 5 |" ,
41
+ "| 18 |" ,
42
+ "| 6 |" ,
43
+ "+------+" ,
44
+ ] ,
45
+ ) ;
46
+ }
47
+
31
48
#[ test]
32
49
fn test_eq ( ) {
33
50
// id = '2'
Original file line number Diff line number Diff line change @@ -128,8 +128,8 @@ pub mod expr_fn {
128
128
}
129
129
130
130
#[ doc = "returns the number of bytes of a string" ]
131
- pub fn octet_length ( args : Vec < Expr > ) -> Expr {
132
- super :: octet_length ( ) . call ( args)
131
+ pub fn octet_length ( args : Expr ) -> Expr {
132
+ super :: octet_length ( ) . call ( vec ! [ args] )
133
133
}
134
134
135
135
#[ doc = "replace the substring of string that starts at the start'th character and extends for count characters with new substring" ]
You can’t perform that action at this time.
0 commit comments