MCPcopy Create free account
hub / github.com/OpenStarbound/OpenStarbound / TEST

Function TEST

source/test/shell_parse.cpp:5–13  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3#include "gtest/gtest.h"
4
5TEST(ShellParser, Simple) {
6 Star::ShellParser parser;
7 auto tokenSet1 = parser.tokenize("The first test.");
8
9 EXPECT_EQ(tokenSet1.size(), 3u);
10 EXPECT_EQ(tokenSet1.at(0).token, "The");
11 EXPECT_EQ(tokenSet1.at(1).token, "first");
12 EXPECT_EQ(tokenSet1.at(2).token, "test.");
13}
14
15TEST(ShellParser, DirectUnicode) {
16 Star::ShellParser parser;

Callers

nothing calls this directly

Calls 3

tokenizeMethod · 0.80
sizeMethod · 0.45
atMethod · 0.45

Tested by

no test coverage detected