summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorruki <[email protected]>2026-07-18 00:23:16 +0800
committerruki <[email protected]>2026-07-18 00:23:16 +0800
commit77aa979dc7fc9169ed0cc8d71511c785288b47ef (patch)
tree353256ee520163dc66ddcecd1e9701cb3dd0bfb6
parent495c2c3d6a36709b87e538737292bb9b4d0c6436 (diff)
fix bin2obj test
-rw-r--r--tests/projects/other/bin2c/src/asset.bin2
-rw-r--r--tests/projects/other/bin2c/src/main.c6
-rw-r--r--tests/projects/other/bin2obj/src/asset.bin2
-rw-r--r--tests/projects/other/bin2obj/src/main.c6
4 files changed, 8 insertions, 8 deletions
diff --git a/tests/projects/other/bin2c/src/asset.bin b/tests/projects/other/bin2c/src/asset.bin
index 0c8cc9a8c..db1331f22 100644
--- a/tests/projects/other/bin2c/src/asset.bin
+++ b/tests/projects/other/bin2c/src/asset.bin
@@ -1 +1 @@
-hello transform!
+hello transform! \ No newline at end of file
diff --git a/tests/projects/other/bin2c/src/main.c b/tests/projects/other/bin2c/src/main.c
index 3c8bcc60b..57a55aed5 100644
--- a/tests/projects/other/bin2c/src/main.c
+++ b/tests/projects/other/bin2c/src/main.c
@@ -102,9 +102,9 @@ int main(int argc, char** argv)
printf("\n");
hexdump("asset.bin (transformed)", g_asset_data, (uint32_t)sizeof(g_asset_data));
- // verify the transform: asset.bin must be the reverse of "hello transform!\n" (+ zeroend '\0')
- const char* expected = "\n!mrofsnart olleh";
- if (sizeof(g_asset_data) != 18 || memcmp(g_asset_data, expected, 17) != 0) {
+ // verify the transform: asset.bin must be the reverse of "hello transform!" (+ zeroend '\0')
+ const char* expected = "!mrofsnart olleh";
+ if (sizeof(g_asset_data) != 17 || memcmp(g_asset_data, expected, 16) != 0) {
printf("asset.bin: transform verification failed!\n");
return 1;
}
diff --git a/tests/projects/other/bin2obj/src/asset.bin b/tests/projects/other/bin2obj/src/asset.bin
index 0c8cc9a8c..db1331f22 100644
--- a/tests/projects/other/bin2obj/src/asset.bin
+++ b/tests/projects/other/bin2obj/src/asset.bin
@@ -1 +1 @@
-hello transform!
+hello transform! \ No newline at end of file
diff --git a/tests/projects/other/bin2obj/src/main.c b/tests/projects/other/bin2obj/src/main.c
index a12bb22d0..bf2a8a1d8 100644
--- a/tests/projects/other/bin2obj/src/main.c
+++ b/tests/projects/other/bin2obj/src/main.c
@@ -102,9 +102,9 @@ int main(int argc, char** argv) {
printf("\n");
hexdump("asset.bin (transformed)", _binary_asset_bin_start, _binary_asset_bin_size);
- // verify the transform: asset.bin must be the reverse of "hello transform!\n" (+ zeroend '\0')
- const char* expected = "\n!mrofsnart olleh";
- if (_binary_asset_bin_size != 18 || memcmp(_binary_asset_bin_start, expected, 17) != 0) {
+ // verify the transform: asset.bin must be the reverse of "hello transform!" (+ zeroend '\0')
+ const char* expected = "!mrofsnart olleh";
+ if (_binary_asset_bin_size != 17 || memcmp(_binary_asset_bin_start, expected, 16) != 0) {
printf("asset.bin: transform verification failed!\n");
return 1;
}