summaryrefslogtreecommitdiff
path: root/tests/regrtest_data
diff options
context:
space:
mode:
authorKound <carli.freudenberg@energymeteo.de>2022-01-13 12:26:08 +0100
committerGitHub <noreply@github.com>2022-01-13 12:26:08 +0100
commitaaa3770d325223ee5c13a637f09ff16e5bbc5851 (patch)
treee49b3380195a0b2ff81c7967c328e0ecac46d96f /tests/regrtest_data
parent6bbb7d5a0f530171faa3ea2271d9d1edab0c902b (diff)
downloadpylint-git-aaa3770d325223ee5c13a637f09ff16e5bbc5851.tar.gz
Add a checker for misleading unicode (#5311)
Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com> Co-authored-by: Daniël van Noord <13665637+DanielNoord@users.noreply.github.com>
Diffstat (limited to 'tests/regrtest_data')
-rw-r--r--tests/regrtest_data/unicode/invisible_function.txt15
-rw-r--r--tests/regrtest_data/unicode/pep_bidirectional_utf_16_bom.txtbin0 -> 215 bytes
-rw-r--r--tests/regrtest_data/unicode/pep_bidirectional_utf_16_le_no_bom.txtbin0 -> 211 bytes
-rw-r--r--tests/regrtest_data/unicode/pep_bidirectional_utf_32_bom.txtbin0 -> 429 bytes
-rw-r--r--tests/regrtest_data/unicode/pep_bidirectional_utf_32_le_no_bom.txtbin0 -> 421 bytes
5 files changed, 15 insertions, 0 deletions
diff --git a/tests/regrtest_data/unicode/invisible_function.txt b/tests/regrtest_data/unicode/invisible_function.txt
new file mode 100644
index 000000000..ebec0247e
--- /dev/null
+++ b/tests/regrtest_data/unicode/invisible_function.txt
@@ -0,0 +1,15 @@
+#!/usr/bin/env python3
+
+def is_admin():
+ return True
+
+def is_​admin():
+ return False
+
+def main():
+ if is_​admin():
+ print("You are an admin.")
+
+
+if __name__ == '__main__':
+ main()
diff --git a/tests/regrtest_data/unicode/pep_bidirectional_utf_16_bom.txt b/tests/regrtest_data/unicode/pep_bidirectional_utf_16_bom.txt
new file mode 100644
index 000000000..67cce9b52
--- /dev/null
+++ b/tests/regrtest_data/unicode/pep_bidirectional_utf_16_bom.txt
Binary files differ
diff --git a/tests/regrtest_data/unicode/pep_bidirectional_utf_16_le_no_bom.txt b/tests/regrtest_data/unicode/pep_bidirectional_utf_16_le_no_bom.txt
new file mode 100644
index 000000000..70610fcbb
--- /dev/null
+++ b/tests/regrtest_data/unicode/pep_bidirectional_utf_16_le_no_bom.txt
Binary files differ
diff --git a/tests/regrtest_data/unicode/pep_bidirectional_utf_32_bom.txt b/tests/regrtest_data/unicode/pep_bidirectional_utf_32_bom.txt
new file mode 100644
index 000000000..afa27e9ef
--- /dev/null
+++ b/tests/regrtest_data/unicode/pep_bidirectional_utf_32_bom.txt
Binary files differ
diff --git a/tests/regrtest_data/unicode/pep_bidirectional_utf_32_le_no_bom.txt b/tests/regrtest_data/unicode/pep_bidirectional_utf_32_le_no_bom.txt
new file mode 100644
index 000000000..dab9046fa
--- /dev/null
+++ b/tests/regrtest_data/unicode/pep_bidirectional_utf_32_le_no_bom.txt
Binary files differ