Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8bb1af8 commit 33e6b5eCopy full SHA for 33e6b5e
2 files changed
csharp/ql/test/library-tests/extractor/longstrings/LongStrings.expected
@@ -1,2 +1 @@
1
-| 443093 |
2
-| 1048576 |
+| Test passed |
csharp/ql/test/library-tests/extractor/longstrings/LongStrings.ql
@@ -1,4 +1,9 @@
import csharp
3
-from StringLiteral lit
4
-select lit.getValue().length()
+from StringLiteral ascii, StringLiteral utf8
+where
5
+ ascii.getValue().length() = 1048576 and
6
+ // UTF8 encoding can vary a little from platform to platform
7
+ utf8.getValue().length() > 440000 and
8
+ utf8.getValue().length() < 450000
9
+select "Test passed"
0 commit comments