Skip to content

Commit cc149a9

Browse files
committed
fix unittest
1 parent 1d6a5ad commit cc149a9

File tree

1 file changed

+6
-9
lines changed

1 file changed

+6
-9
lines changed

src/Manifest.cc

+6-9
Original file line numberDiff line numberDiff line change
@@ -774,12 +774,11 @@ testPackageTryFromToml() {
774774

775775
assertEq(
776776
Package::tryFromToml(val).unwrap_err()->what(),
777-
R"([error] toml::value::at: key "name" not found
777+
R"(toml::value::at: key "name" not found
778778
--> TOML literal encoded in a C++ code
779779
|
780780
2 | [package]
781-
| ^^^^^^^^^-- in this table
782-
)"
781+
| ^^^^^^^^^-- in this table)"
783782
);
784783
}
785784
{
@@ -790,12 +789,11 @@ testPackageTryFromToml() {
790789

791790
assertEq(
792791
Package::tryFromToml(val).unwrap_err()->what(),
793-
R"([error] toml::value::at: key "edition" not found
792+
R"(toml::value::at: key "edition" not found
794793
--> TOML literal encoded in a C++ code
795794
|
796795
2 | [package]
797-
| ^^^^^^^^^-- in this table
798-
)"
796+
| ^^^^^^^^^-- in this table)"
799797
);
800798
}
801799
{
@@ -807,12 +805,11 @@ testPackageTryFromToml() {
807805

808806
assertEq(
809807
Package::tryFromToml(val).unwrap_err()->what(),
810-
R"([error] toml::value::at: key "version" not found
808+
R"(toml::value::at: key "version" not found
811809
--> TOML literal encoded in a C++ code
812810
|
813811
2 | [package]
814-
| ^^^^^^^^^-- in this table
815-
)"
812+
| ^^^^^^^^^-- in this table)"
816813
);
817814
}
818815

0 commit comments

Comments
 (0)