fix mod loading test on windows

This commit is contained in:
Moritz Zwerger 2024-01-22 02:47:02 +01:00
parent 089734122a
commit 717209e8a9
No known key found for this signature in database
GPG Key ID: 5CAD791931B09AC4

View File

@ -1,6 +1,6 @@
/*
* Minosoft
* Copyright (C) 2020-2023 Moritz Zwerger
* Copyright (C) 2020-2024 Moritz Zwerger
*
* This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
*
@ -85,6 +85,6 @@ class LoadingPhaseTest {
assertEquals(mod::class.java.getFieldOrNull("dummy")!!.get(mod), 1)
assertEquals(mod::class.java.getFieldOrNull("init")!!.get(mod), 1)
assertEquals(mod::class.java.getFieldOrNull("postInit")!!.get(mod), 1)
assertEquals(mod::class.java.getFieldOrNull("flag")!!.get(mod), "hehe\n")
assertEquals(mod::class.java.getFieldOrNull("flag")!!.get(mod).unsafeCast<String>().replace("\n", "").replace("\r", ""), "hehe")
}
}