File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -284,12 +284,12 @@ test_revisions(void **state)
284
284
strcpy (rev -> date , "2018-12-31" );
285
285
286
286
assert_int_equal (2 , LY_ARRAY_COUNT (revs ));
287
- assert_string_equal ("2018-01-01" , & revs [0 ]);
288
- assert_string_equal ("2018-12-31" , & revs [1 ]);
287
+ assert_string_equal ("2018-01-01" , revs [0 ]. date );
288
+ assert_string_equal ("2018-12-31" , revs [1 ]. date );
289
289
/* the order should be fixed, so the newest revision will be the first in the array */
290
290
lysp_sort_revisions (revs );
291
- assert_string_equal ("2018-12-31" , & revs [0 ]);
292
- assert_string_equal ("2018-01-01" , & revs [1 ]);
291
+ assert_string_equal ("2018-12-31" , revs [0 ]. date );
292
+ assert_string_equal ("2018-01-01" , revs [1 ]. date );
293
293
294
294
LY_ARRAY_FREE (revs );
295
295
}
Original file line number Diff line number Diff line change @@ -3099,7 +3099,7 @@ test_module_elem(void **state)
3099
3099
3100
3100
assert_int_equal (yin_parse_mod (YCTX , lysp_mod ), LY_SUCCESS );
3101
3101
assert_string_equal (lysp_mod -> mod -> name , "mod" );
3102
- assert_string_equal (lysp_mod -> revs , "2019-02-02" );
3102
+ assert_string_equal (lysp_mod -> revs [ 0 ]. date , "2019-02-02" );
3103
3103
assert_string_equal (lysp_mod -> mod -> ns , "ns" );
3104
3104
assert_string_equal (lysp_mod -> mod -> prefix , "pref" );
3105
3105
assert_null (lysp_mod -> mod -> filepath );
@@ -3235,7 +3235,7 @@ test_submodule_elem(void **state)
3235
3235
CHECK_LOG_CTX ("YANG version 1.1 expects all includes in main module, includes in submodules (mod) are not necessary." ,
3236
3236
NULL );
3237
3237
assert_string_equal (lysp_submod -> name , "mod" );
3238
- assert_string_equal (lysp_submod -> revs , "2019-02-02" );
3238
+ assert_string_equal (lysp_submod -> revs [ 0 ]. date , "2019-02-02" );
3239
3239
assert_string_equal (lysp_submod -> prefix , "pref" );
3240
3240
assert_null (lysp_submod -> filepath );
3241
3241
assert_string_equal (lysp_submod -> org , "org" );
You can’t perform that action at this time.
0 commit comments