Skip to content

Commit

Permalink
revert the test case
Browse files Browse the repository at this point in the history
  • Loading branch information
wenbingl committed Jan 13, 2025
1 parent 7b7913a commit f03d6a1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/pp_api_test/test_tokenizer.cc
Original file line number Diff line number Diff line change
Expand Up @@ -76,13 +76,13 @@ TEST(OrtxTokenizerTest, ClipTokenizer) {
// validate tokenizer is not null
ASSERT_NE(tokenizer.get(), nullptr) << "Tokenizer is null, stopping the test.";

std::vector<std::string_view> input = {"<|startoftext|>|this is a test<|endoftext|>", "the second one"};
std::vector<std::string_view> input = {"this is a test .", "the second one"};

std::vector<std::vector<extTokenId_t>> token_ids;
status = tokenizer->Tokenize(input, token_ids);
EXPECT_TRUE(status.IsOk());
EXPECT_EQ(token_ids.size(), 2);
EXPECT_EQ(token_ids[0].size(), 6);
EXPECT_EQ(token_ids[0].size(), 7);
EXPECT_EQ(token_ids[1].size(), 5);

std::vector<std::string> out_text;
Expand Down

0 comments on commit f03d6a1

Please sign in to comment.