Skip to content

Commit 7cc808c

Browse files
committed
rapidyaml tests work, including utf
1 parent b14b38a commit 7cc808c

File tree

2 files changed

+19
-3
lines changed

2 files changed

+19
-3
lines changed

rapidyaml/src/main/java/org/rapidyaml/Rapidyaml.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ public static void main(
4646

4747
public Rapidyaml() throws Exception, IOException {
4848
if (System.getenv("YS_RAPIDYAML_MAVEN_TEST") != null)
49-
System.loadLibrary(RAPIDYAML_LIBNAME);
49+
System.loadLibrary(RAPIDYAML_NAME);
5050
else
5151
NativeLibLoader.loadLibraryFromResource(RAPIDYAML_LIBNAME);
5252

rapidyaml/src/test/java/org/rapidyaml/RapidyamlTest.java

Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,23 @@ public void testUtf8()
6969
};
7070
testEvt_(ys, expected);
7171
}
72-
72+
73+
public void testUtf8_2()
74+
{
75+
String ys = "star: ★";
76+
ExpectedEvent[] expected = {
77+
mkev(Evt.BSTR),
78+
mkev(Evt.BDOC),
79+
mkev(Evt.VAL_|Evt.BMAP|Evt.BLCK),
80+
mkev(Evt.KEY_|Evt.SCLR|Evt.PLAI, 0, 4, "star"),
81+
mkev(Evt.VAL_|Evt.SCLR|Evt.PLAI, 6, 3, "★"),
82+
mkev(Evt.EMAP),
83+
mkev(Evt.EDOC),
84+
mkev(Evt.ESTR),
85+
};
86+
testEvt_(ys, expected);
87+
}
88+
7389
public void testTaggedInt()
7490
{
7591
String ys = "- !!int 42";
@@ -85,7 +101,7 @@ public void testTaggedInt()
85101
};
86102
testEvt_(ys, expected);
87103
}
88-
104+
89105
public void testTaggedSeq()
90106
{
91107
String ys = "- !!seq []";

0 commit comments

Comments
 (0)