summaryrefslogtreecommitdiff
path: root/server/common
diff options
context:
space:
mode:
Diffstat (limited to 'server/common')
-rw-r--r--server/common/src/tests.rs18
1 files changed, 18 insertions, 0 deletions
diff --git a/server/common/src/tests.rs b/server/common/src/tests.rs
index f336f67..c275c70 100644
--- a/server/common/src/tests.rs
+++ b/server/common/src/tests.rs
@@ -523,3 +523,21 @@ async fn test_grit_parse_base() {
},
)
}
+
+#[tokio::test]
+async fn test_grit_parse_extra() {
+ let path = PathBuf::from(env!("CARGO_MANIFEST_DIR")).join("src/testdata/grit/extra.grdp");
+ let grit = grit::parse_grit_part(path).await.unwrap();
+ assert_eq!(
+ grit,
+ grit::GritPart {
+ messages: vec![grit::IfMessage::Message(grit::Message {
+ desc: "Extra title".to_string(),
+ name: "IDS_EXTRA".to_string(),
+ internal_comment: None,
+ meaning: None,
+ content: vec![grit::TextPlaceholder::Text("Extra title".to_string()),],
+ },),],
+ },
+ )
+}