mirror of
https://gitee.com/Lyon1998/pikapython.git
synced 2025-01-15 17:02:53 +08:00
change arg range to accelerate
This commit is contained in:
parent
7e67edb75d
commit
0bc0d77b5a
2
.vscode/launch.json
vendored
2
.vscode/launch.json
vendored
@ -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
|
@ -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);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user