summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLaurenz <laurmaedje@gmail.com>2021-03-29 14:51:54 +0200
committerLaurenz <laurmaedje@gmail.com>2021-03-29 14:51:54 +0200
commit9c040a9d2b6aa0400df868c8a8581a9e168b9d14 (patch)
treec9052f2dffa386a2f4343e72ae8d18e0f695b964
parentdf7ba364743cbcadbded78df0250c0b58d70503f (diff)
Move around test cases 🚚
-rw-r--r--src/library/basic.rs (renamed from src/library/base.rs)0
-rw-r--r--src/library/mod.rs4
-rw-r--r--tests/ref/markup/basic.pngbin0 -> 3827 bytes
-rw-r--r--tests/ref/markup/linebreak.pngbin3574 -> 0 bytes
-rw-r--r--tests/ref/markup/nbsp.pngbin1664 -> 0 bytes
-rw-r--r--tests/ref/markup/parbreak.pngbin1682 -> 0 bytes
-rw-r--r--tests/ref/text/shaping.png (renamed from tests/ref/text/complex.png)bin12273 -> 12273 bytes
-rw-r--r--tests/typ/library/basic.typ (renamed from tests/typ/library/base.typ)2
-rw-r--r--tests/typ/markup/basic.typ22
-rw-r--r--tests/typ/markup/linebreak.typ25
-rw-r--r--tests/typ/markup/nbsp.typ4
-rw-r--r--tests/typ/markup/parbreak.typ11
-rw-r--r--tests/typ/text/shaping.typ (renamed from tests/typ/text/complex.typ)0
13 files changed, 25 insertions, 43 deletions
diff --git a/src/library/base.rs b/src/library/basic.rs
index 48925122..48925122 100644
--- a/src/library/base.rs
+++ b/src/library/basic.rs
diff --git a/src/library/mod.rs b/src/library/mod.rs
index 9c2a661a..738348ee 100644
--- a/src/library/mod.rs
+++ b/src/library/mod.rs
@@ -4,7 +4,7 @@
//! definitions.
mod align;
-mod base;
+mod basic;
mod font;
mod image;
mod lang;
@@ -17,7 +17,7 @@ mod spacing;
pub use self::image::*;
pub use align::*;
-pub use base::*;
+pub use basic::*;
pub use font::*;
pub use lang::*;
pub use markup::*;
diff --git a/tests/ref/markup/basic.png b/tests/ref/markup/basic.png
new file mode 100644
index 00000000..a43fcbcb
--- /dev/null
+++ b/tests/ref/markup/basic.png
Binary files differ
diff --git a/tests/ref/markup/linebreak.png b/tests/ref/markup/linebreak.png
deleted file mode 100644
index 32236e74..00000000
--- a/tests/ref/markup/linebreak.png
+++ /dev/null
Binary files differ
diff --git a/tests/ref/markup/nbsp.png b/tests/ref/markup/nbsp.png
deleted file mode 100644
index 8834bb2b..00000000
--- a/tests/ref/markup/nbsp.png
+++ /dev/null
Binary files differ
diff --git a/tests/ref/markup/parbreak.png b/tests/ref/markup/parbreak.png
deleted file mode 100644
index f100b9d7..00000000
--- a/tests/ref/markup/parbreak.png
+++ /dev/null
Binary files differ
diff --git a/tests/ref/text/complex.png b/tests/ref/text/shaping.png
index 9af49f16..9af49f16 100644
--- a/tests/ref/text/complex.png
+++ b/tests/ref/text/shaping.png
Binary files differ
diff --git a/tests/typ/library/base.typ b/tests/typ/library/basic.typ
index cc9f14a0..a16215a7 100644
--- a/tests/typ/library/base.typ
+++ b/tests/typ/library/basic.typ
@@ -1,4 +1,4 @@
-// Test the base functions.
+// Test basic functions.
// Ref: false
---
diff --git a/tests/typ/markup/basic.typ b/tests/typ/markup/basic.typ
new file mode 100644
index 00000000..3e83b911
--- /dev/null
+++ b/tests/typ/markup/basic.typ
@@ -0,0 +1,22 @@
+// Test basic markup.
+
+---
+#let linebreak() = [
+ // Inside the old line break definition is still active.
+ #circle(radius: 2pt, fill: #000) \
+]
+
+A \ B \ C
+
+---
+// Paragraph breaks don't exist!
+#let parbreak() = [ ]
+
+No more
+
+paragraph breaks
+
+for you!
+
+---
+The non-breaking~space does work.
diff --git a/tests/typ/markup/linebreak.typ b/tests/typ/markup/linebreak.typ
deleted file mode 100644
index b1b83dcc..00000000
--- a/tests/typ/markup/linebreak.typ
+++ /dev/null
@@ -1,25 +0,0 @@
-// Test forced line breaks.
-
----
-// Directly after word.
-Line\ Break
-
-// Spaces around.
-Line \ Break
-
-// Directly before word does not work.
-No \Break
-
-\ Before
-
-Multiple \ \ \
-
-Times
-
----
-#let linebreak() = [
- // Inside the old line break definition is still active.
- #circle(radius: 2pt, fill: #000) \
-]
-
-A \ B \ C
diff --git a/tests/typ/markup/nbsp.typ b/tests/typ/markup/nbsp.typ
deleted file mode 100644
index 372268eb..00000000
--- a/tests/typ/markup/nbsp.typ
+++ /dev/null
@@ -1,4 +0,0 @@
-// Test the non breaking space.
-
----
-The non-breaking~space does work.
diff --git a/tests/typ/markup/parbreak.typ b/tests/typ/markup/parbreak.typ
deleted file mode 100644
index b9b8a222..00000000
--- a/tests/typ/markup/parbreak.typ
+++ /dev/null
@@ -1,11 +0,0 @@
-// Test paragraph breaks.
-
----
-// Paragraph breaks don't exist!
-#let parbreak() = [ ]
-
-No more
-
-paragraph breaks
-
-for you!
diff --git a/tests/typ/text/complex.typ b/tests/typ/text/shaping.typ
index 567a208d..567a208d 100644
--- a/tests/typ/text/complex.typ
+++ b/tests/typ/text/shaping.typ