Skip to content

Commit ac6dfce

Browse files
Fix encoding in tests
Signed-off-by: Luca Della Vedova <[email protected]>
1 parent 63b63de commit ac6dfce

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

sdformat_rs/tests/camera_test.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ fn test_plugin() {
121121
use sdformat_rs::SdfLight;
122122
#[test]
123123
fn test_light_direction_pose_serdeser() {
124-
let test_syntax = "<?xml version=\"1.0\" encoding=\"utf-8\"?><light name=\"test\" type=\"point\"><direction>0 0 1</direction></light>";
124+
let test_syntax = "<?xml version=\"1.0\" encoding=\"UTF-8\"?><light name=\"test\" type=\"point\"><direction>0 0 1</direction></light>";
125125
let fr = from_str::<SdfLight>(test_syntax);
126126
let serialized = yaserde::ser::to_string(&fr.unwrap()).unwrap();
127127
assert_eq!(test_syntax.to_string(), serialized);
@@ -130,7 +130,7 @@ fn test_light_direction_pose_serdeser() {
130130
use sdformat_rs::SdfModel;
131131
#[test]
132132
fn test_nested_model() {
133-
let test_syntax = "<?xml version=\"1.0\" encoding=\"utf-8\"?><model name=\"top\"><model name=\"nested\" /></model>";
133+
let test_syntax = "<?xml version=\"1.0\" encoding=\"UTF-8\"?><model name=\"top\"><model name=\"nested\" /></model>";
134134
let fr = from_str::<SdfModel>(test_syntax);
135135
let serialized = yaserde::ser::to_string(&fr.unwrap()).unwrap();
136136
assert_eq!(test_syntax.to_string(), serialized);

0 commit comments

Comments
 (0)