diff --git a/.vscode/launch.json b/.vscode/launch.json index 4d0181c7a..23e5b4f40 100644 --- a/.vscode/launch.json +++ b/.vscode/launch.json @@ -10,7 +10,7 @@ "request": "launch", "program": "${workspaceFolder}/build/src/test/pikascript_test", "args": [ - "--gtest_filter=args.update" + "--gtest_filter=content*" ], "stopAtEntry": false, "cwd": "${workspaceFolder}", diff --git a/src/package/pikascript/pikascript-core b/src/package/pikascript/pikascript-core index f7e878363..e86ac533d 160000 --- a/src/package/pikascript/pikascript-core +++ b/src/package/pikascript/pikascript-core @@ -1 +1 @@ -Subproject commit f7e878363d1cf8090e457b551143a34c4ab8aed3 +Subproject commit e86ac533d40ded07ec51ab5f3483ff57918d2424 diff --git a/src/test/content-test.cpp b/src/test/content-test.cpp index 4588e5688..ce4f6c65d 100644 --- a/src/test/content-test.cpp +++ b/src/test/content-test.cpp @@ -27,9 +27,9 @@ TEST(content, init) uint16_t size = content_getSize(self); uint8_t *content = content_getContent(self); - ASSERT_EQ(contentOffset, 12); - ASSERT_EQ(typeOffset, 5); - ASSERT_EQ(sizeOffset, 10); + ASSERT_EQ(contentOffset, 15); + ASSERT_EQ(typeOffset, 19); + ASSERT_EQ(sizeOffset, 8); ASSERT_EQ(size, 4); ASSERT_EQ(content[0], 1); ASSERT_EQ(content[1], 2); @@ -66,9 +66,9 @@ TEST(content, set) uint16_t size = content_getSize(self); uint8_t *content = content_getContent(self); - ASSERT_EQ(contentOffset, 12); - ASSERT_EQ(typeOffset, 5); - ASSERT_EQ(sizeOffset, 10); + ASSERT_EQ(contentOffset, 15); + ASSERT_EQ(typeOffset, 19); + ASSERT_EQ(sizeOffset, 8); ASSERT_EQ(size, 4); ASSERT_EQ(content[0], 1); ASSERT_EQ(content[1], 2);