bench: mv input files to bench/input

only used by input crate, avoid cluttering bench dir
This commit is contained in:
Noah Hellman 2023-04-10 11:38:32 +02:00
parent bee3d5d747
commit 5de8543bb0
3 changed files with 3 additions and 3 deletions

View file

@ -1,7 +1,7 @@
use std::io::Write;
fn main() {
let inputs = std::fs::read_dir("..")
let inputs = std::fs::read_dir(".")
.unwrap()
.filter_map(|entry| {
let entry = entry.ok()?;
@ -9,7 +9,7 @@ fn main() {
if let Some(name) = name.strip_suffix(".dj") {
if entry.file_type().map_or(false, |ty| !ty.is_dir()) {
let input = std::fs::read_to_string(
std::path::Path::new("..").join(entry.file_name()),
std::path::Path::new(".").join(entry.file_name()),
)
.ok()?;
return Some((name.to_string(), input));

View file

@ -0,0 +1,82 @@
Inline{.a} attributes{#b} attached{c=d} to{.e} words{#f} probably{g=h}
only{i=j} contain{.m} a{#n} single{o=pqrstuv} attribute{.wxyz} in{#å-ä-ö}
the{абв=где} vast{.ёжз} majority{#ийк} of{мно=прс} cases{.туф}.
However{.they #could potentially=contain .any #number of="attributes," .also
#spanning multiple="lines," .even #the values="may span multiple lines
like this,
or even this"}. Attributes{.may}{#also}{be=concatenated}{.like}{#this}.
[Attributes]{.abc} *may also*{ghi=jkl} _be attached to containers_{mno=pqr},
{=they will most likely also contain a single attribute=}{.stu}.
[{^Containers [_may *also*{.first}_{#second} be]{.third}^}{.fourth} nested]{#fifth}
Attribute{values="can
span
any
number
of
lines
like
a
lot
of
lineee
e
ee
e
e
e
e
s"
%same
with
comments
they
can
be
lo
o
o
o
o
ng%}
Attribute{values="can
span
any
number
of
lines
like
a
lot
of
lineee
e
ee
e
e
e
e
s"
%even
though
they
are
long
they
could
_*turn*_
out
to
not
be
"attributes"
at
all
in
the
end
}