]> git.lizzy.rs Git - rust.git/commitdiff
Add a test for soft wrapping for comments
authortopecongiro <seuchida@gmail.com>
Tue, 31 Oct 2017 06:01:38 +0000 (15:01 +0900)
committertopecongiro <seuchida@gmail.com>
Tue, 31 Oct 2017 06:01:38 +0000 (15:01 +0900)
tests/source/soft-wrapping.rs [new file with mode: 0644]
tests/target/soft-wrapping.rs [new file with mode: 0644]

diff --git a/tests/source/soft-wrapping.rs b/tests/source/soft-wrapping.rs
new file mode 100644 (file)
index 0000000..a739376
--- /dev/null
@@ -0,0 +1,9 @@
+// rustfmt-wrap_comments: true
+// rustfmt-max_width: 80
+// Soft wrapping for comments.
+
+// #535, soft wrapping for comments
+// Compare the lowest `f32` of both inputs for greater than or equal. The
+// lowest 32 bits of the result will be `0xffffffff` if `a.extract(0)` is
+// ggreater than or equal `b.extract(0)`, or `0` otherwise. The upper 96 bits off
+// the result are the upper 96 bits of `a`.
diff --git a/tests/target/soft-wrapping.rs b/tests/target/soft-wrapping.rs
new file mode 100644 (file)
index 0000000..eb5318f
--- /dev/null
@@ -0,0 +1,9 @@
+// rustfmt-wrap_comments: true
+// rustfmt-max_width: 80
+// Soft wrapping for comments.
+
+// #535, soft wrapping for comments
+// Compare the lowest `f32` of both inputs for greater than or equal. The
+// lowest 32 bits of the result will be `0xffffffff` if `a.extract(0)` is
+// ggreater than or equal `b.extract(0)`, or `0` otherwise. The upper 96 bits
+// off the result are the upper 96 bits of `a`.