@@ -45,9 +45,12 @@ fn test_as_slice() {
45
45
#[ test]
46
46
fn test_types ( ) {
47
47
assert ! ( Atom :: from( "" ) . is_static( ) ) ;
48
+ assert ! ( Atom :: from( "defaults" ) . is_static( ) ) ;
49
+ assert ! ( Atom :: from( "font-weight" ) . is_static( ) ) ;
48
50
assert ! ( Atom :: from( "id" ) . is_static( ) ) ;
49
51
assert ! ( Atom :: from( "body" ) . is_static( ) ) ;
50
52
assert ! ( Atom :: from( "a" ) . is_static( ) ) ;
53
+ assert ! ( Atom :: from( "address" ) . is_static( ) ) ;
51
54
assert ! ( Atom :: from( "c" ) . is_inline( ) ) ;
52
55
assert ! ( Atom :: from( "zz" ) . is_inline( ) ) ;
53
56
assert ! ( Atom :: from( "zzz" ) . is_inline( ) ) ;
@@ -168,6 +171,8 @@ fn repr() {
168
171
// static atom table, the tag values, etc.
169
172
170
173
// Static atoms
174
+ check_static ( "defaults" , test_atom ! ( "defaults" ) ) ;
175
+ check_static ( "font-weight" , test_atom ! ( "font-weight" ) ) ;
171
176
check_static ( "a" , test_atom ! ( "a" ) ) ;
172
177
check_static ( "address" , test_atom ! ( "address" ) ) ;
173
178
check_static ( "area" , test_atom ! ( "area" ) ) ;
@@ -193,7 +198,9 @@ fn test_threads() {
193
198
194
199
#[ test]
195
200
fn atom_macro ( ) {
201
+ assert_eq ! ( test_atom!( "a" ) , Atom :: from( "a" ) ) ;
196
202
assert_eq ! ( test_atom!( "body" ) , Atom :: from( "body" ) ) ;
203
+ assert_eq ! ( test_atom!( "address" ) , Atom :: from( "address" ) ) ;
197
204
assert_eq ! ( test_atom!( "font-weight" ) , Atom :: from( "font-weight" ) ) ;
198
205
}
199
206
@@ -292,6 +299,7 @@ fn test_from_string() {
292
299
293
300
#[ test]
294
301
fn test_try_static ( ) {
302
+ assert ! ( Atom :: try_static( "defaults" ) . is_some( ) ) ;
295
303
assert ! ( Atom :: try_static( "head" ) . is_some( ) ) ;
296
304
assert ! ( Atom :: try_static( "not in the static table" ) . is_none( ) ) ;
297
305
}
0 commit comments