change arg range to accelerate

This commit is contained in:
lyon 2021-09-05 10:54:13 +08:00
parent 7e67edb75d
commit 0bc0d77b5a
3 changed files with 8 additions and 8 deletions

2
.vscode/launch.json vendored
View File

@ -10,7 +10,7 @@
"request": "launch", "request": "launch",
"program": "${workspaceFolder}/build/src/test/pikascript_test", "program": "${workspaceFolder}/build/src/test/pikascript_test",
"args": [ "args": [
"--gtest_filter=args.update" "--gtest_filter=content*"
], ],
"stopAtEntry": false, "stopAtEntry": false,
"cwd": "${workspaceFolder}", "cwd": "${workspaceFolder}",

@ -1 +1 @@
Subproject commit f7e878363d1cf8090e457b551143a34c4ab8aed3 Subproject commit e86ac533d40ded07ec51ab5f3483ff57918d2424

View File

@ -27,9 +27,9 @@ TEST(content, init)
uint16_t size = content_getSize(self); uint16_t size = content_getSize(self);
uint8_t *content = content_getContent(self); uint8_t *content = content_getContent(self);
ASSERT_EQ(contentOffset, 12); ASSERT_EQ(contentOffset, 15);
ASSERT_EQ(typeOffset, 5); ASSERT_EQ(typeOffset, 19);
ASSERT_EQ(sizeOffset, 10); ASSERT_EQ(sizeOffset, 8);
ASSERT_EQ(size, 4); ASSERT_EQ(size, 4);
ASSERT_EQ(content[0], 1); ASSERT_EQ(content[0], 1);
ASSERT_EQ(content[1], 2); ASSERT_EQ(content[1], 2);
@ -66,9 +66,9 @@ TEST(content, set)
uint16_t size = content_getSize(self); uint16_t size = content_getSize(self);
uint8_t *content = content_getContent(self); uint8_t *content = content_getContent(self);
ASSERT_EQ(contentOffset, 12); ASSERT_EQ(contentOffset, 15);
ASSERT_EQ(typeOffset, 5); ASSERT_EQ(typeOffset, 19);
ASSERT_EQ(sizeOffset, 10); ASSERT_EQ(sizeOffset, 8);
ASSERT_EQ(size, 4); ASSERT_EQ(size, 4);
ASSERT_EQ(content[0], 1); ASSERT_EQ(content[0], 1);
ASSERT_EQ(content[1], 2); ASSERT_EQ(content[1], 2);