Skip to content
This repository was archived by the owner on Jul 13, 2019. It is now read-only.

Commit e6285fd

Browse files
mattyclarksontkruse
authored andcommitted
Add unit test for using literals namespaces
1 parent f8894ec commit e6285fd

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

cpplint_unittest.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2923,6 +2923,10 @@ def DoTest(self, lines):
29232923
DoTest(self, ['', '', '', 'using namespace foo;'])
29242924
DoTest(self, ['// hello', 'using namespace foo;'])
29252925

2926+
def testUsingLiteralsNamespaces(self):
2927+
self.TestLint('using namespace std::literals;', '')
2928+
self.TestLint('using namespace std::literals::chrono_literals;', '')
2929+
29262930
def testNewlineAtEOF(self):
29272931
def DoTest(self, data, is_missing_eof):
29282932
error_collector = ErrorCollector(self.assert_)

0 commit comments

Comments
 (0)