diff options
Diffstat (limited to 'src/test')
-rw-r--r-- | src/test/kotlin/root.kt | 2 | ||||
-rw-r--r-- | src/test/resources/testdata/chat/sacks/gain-and-lose-regular.snbt | 101 | ||||
-rw-r--r-- | src/test/resources/testdata/chat/sacks/gain-rotten-flesh.snbt | 101 |
3 files changed, 203 insertions, 1 deletions
diff --git a/src/test/kotlin/root.kt b/src/test/kotlin/root.kt index 679ecb4..045fdd5 100644 --- a/src/test/kotlin/root.kt +++ b/src/test/kotlin/root.kt @@ -4,7 +4,7 @@ import net.minecraft.Bootstrap import net.minecraft.SharedConstants import moe.nea.firmament.util.TimeMark - object FirmTestBootstrap { +object FirmTestBootstrap { val loadStart = TimeMark.now() init { diff --git a/src/test/resources/testdata/chat/sacks/gain-and-lose-regular.snbt b/src/test/resources/testdata/chat/sacks/gain-and-lose-regular.snbt new file mode 100644 index 0000000..924a558 --- /dev/null +++ b/src/test/resources/testdata/chat/sacks/gain-and-lose-regular.snbt @@ -0,0 +1,101 @@ +{ + color: "#FFAA00", + extra: [ + { + color: "#55FF55", + hoverEvent: { + action: "show_text", + contents: { + color: "#55FF55", + extra: [ + { + color: "#55FF55", + strikethrough: 0b, + text: " +1 " + }, + { + color: "#FFFF55", + strikethrough: 0b, + text: "Rotten Flesh" + }, + { + color: "#555555", + strikethrough: 0b, + text: " (Combat Sack)" + }, + { + strikethrough: 0b, + text: " + +" + }, + { + color: "#555555", + strikethrough: 0b, + text: "This message can be disabled in the settings." + } + ], + strikethrough: 0b, + text: "Added items: +" + } + }, + strikethrough: 0b, + text: "+1" + }, + { + color: "#FFFF55", + hoverEvent: { + action: "show_text", + contents: { + color: "#55FF55", + extra: [ + { + color: "#55FF55", + strikethrough: 0b, + text: " +1 " + }, + { + color: "#FFFF55", + strikethrough: 0b, + text: "Rotten Flesh" + }, + { + color: "#555555", + strikethrough: 0b, + text: " (Combat Sack)" + }, + { + strikethrough: 0b, + text: " + +" + }, + { + color: "#555555", + strikethrough: 0b, + text: "This message can be disabled in the settings." + } + ], + strikethrough: 0b, + text: "Added items: +" + } + }, + strikethrough: 0b, + text: " item" + }, + { + color: "#FFFF55", + strikethrough: 0b, + text: "." + }, + { + color: "#555555", + strikethrough: 0b, + text: " (Last 5s.)" + } + ], + strikethrough: 0b, + text: "[Sacks] " +} diff --git a/src/test/resources/testdata/chat/sacks/gain-rotten-flesh.snbt b/src/test/resources/testdata/chat/sacks/gain-rotten-flesh.snbt new file mode 100644 index 0000000..924a558 --- /dev/null +++ b/src/test/resources/testdata/chat/sacks/gain-rotten-flesh.snbt @@ -0,0 +1,101 @@ +{ + color: "#FFAA00", + extra: [ + { + color: "#55FF55", + hoverEvent: { + action: "show_text", + contents: { + color: "#55FF55", + extra: [ + { + color: "#55FF55", + strikethrough: 0b, + text: " +1 " + }, + { + color: "#FFFF55", + strikethrough: 0b, + text: "Rotten Flesh" + }, + { + color: "#555555", + strikethrough: 0b, + text: " (Combat Sack)" + }, + { + strikethrough: 0b, + text: " + +" + }, + { + color: "#555555", + strikethrough: 0b, + text: "This message can be disabled in the settings." + } + ], + strikethrough: 0b, + text: "Added items: +" + } + }, + strikethrough: 0b, + text: "+1" + }, + { + color: "#FFFF55", + hoverEvent: { + action: "show_text", + contents: { + color: "#55FF55", + extra: [ + { + color: "#55FF55", + strikethrough: 0b, + text: " +1 " + }, + { + color: "#FFFF55", + strikethrough: 0b, + text: "Rotten Flesh" + }, + { + color: "#555555", + strikethrough: 0b, + text: " (Combat Sack)" + }, + { + strikethrough: 0b, + text: " + +" + }, + { + color: "#555555", + strikethrough: 0b, + text: "This message can be disabled in the settings." + } + ], + strikethrough: 0b, + text: "Added items: +" + } + }, + strikethrough: 0b, + text: " item" + }, + { + color: "#FFFF55", + strikethrough: 0b, + text: "." + }, + { + color: "#555555", + strikethrough: 0b, + text: " (Last 5s.)" + } + ], + strikethrough: 0b, + text: "[Sacks] " +} |