Skip to content

Commit 7420e4d

Browse files
authored
Merge pull request #42 from GrantBirki/copilot/fix-41
Add comprehensive test suite and improve code maintainability 🧪
2 parents 2520e77 + bca9c97 commit 7420e4d

File tree

8 files changed

+1628
-45
lines changed

8 files changed

+1628
-45
lines changed

__tests__/fixtures/empty.diff

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
# Empty diff file for testing

__tests__/fixtures/large.diff

Lines changed: 1054 additions & 0 deletions
Large diffs are not rendered by default.
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
diff --git a/old-file.txt b/new-file.txt
2+
similarity index 100%
3+
rename from old-file.txt
4+
rename to new-file.txt
5+
diff --git a/script.sh b/script.sh
6+
old mode 100644
7+
new mode 100755
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
diff --git a/test-file-with-special-chars.txt b/test-file-with-special-chars.txt
2+
new file mode 100644
3+
index 0000000..abc123
4+
--- /dev/null
5+
+++ b/test-file-with-special-chars.txt
6+
@@ -0,0 +1,3 @@
7+
+This file contains special characters: éñ√ßπ∆
8+
+Unicode: 🚀 🎉 💻
9+
+Symbols: !@#$%^&*()[]{}|;':\",./<>?

0 commit comments

Comments
 (0)