forked from JFreegman/toxic
-
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test: Add some initial unit tests for toxic.
These don't do much yet, but will help debug/fix unicode stuff.
- Loading branch information
Showing
11 changed files
with
1,624 additions
and
1,365 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
BasedOnStyle: WebKit | ||
ColumnLimit: 100 | ||
PointerAlignment: Right | ||
SpacesBeforeTrailingComments: 2 | ||
AlignConsecutiveMacros: true | ||
AlignEscapedNewlines: Left | ||
AlwaysBreakTemplateDeclarations: Yes | ||
SpaceBeforeCpp11BracedList: false | ||
Cpp11BracedListStyle: true | ||
|
||
IncludeIsMainRegex: '([-_](test|fuzz_test))?$' | ||
IncludeBlocks: Regroup | ||
IncludeCategories: | ||
- Regex: '^<.*\.h>' | ||
Priority: 1 | ||
SortPriority: 0 | ||
- Regex: '^<.*' | ||
Priority: 2 | ||
SortPriority: 0 | ||
- Regex: '.*' | ||
Priority: 3 | ||
SortPriority: 0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
#include "line_info.h" | ||
|
||
#include <gtest/gtest.h> | ||
|
||
namespace { | ||
|
||
TEST(LineInfo, TextWidth) | ||
{ | ||
wchar_t buf[100]; | ||
EXPECT_EQ(line_info_add_msg(buf, 100, "Hello, world!"), 13); | ||
} | ||
|
||
} // namespace |
Oops, something went wrong.