summaryrefslogtreecommitdiff
path: root/subplotlib
diff options
context:
space:
mode:
authorDaniel Silverstone <dsilvers@digital-scurf.org>2020-12-05 11:33:24 +0000
committerDaniel Silverstone <dsilvers@digital-scurf.org>2020-12-21 08:39:32 +0000
commita1ffaea8703126af20f2a4a61fa53fea8c17e218 (patch)
tree2daf4e78837957adef53c2d2328e52afd38e48c8 /subplotlib
parente224ec2d7cbea36dcea43f2b0b5cb20c75c8c502 (diff)
downloadsubplot-a1ffaea8703126af20f2a4a61fa53fea8c17e218.tar.gz
rust: Use commentsafe filter in rust template
Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
Diffstat (limited to 'subplotlib')
-rw-r--r--subplotlib/tests/subplotlib.rs16
1 files changed, 13 insertions, 3 deletions
diff --git a/subplotlib/tests/subplotlib.rs b/subplotlib/tests/subplotlib.rs
index fc88cae..a21f555 100644
--- a/subplotlib/tests/subplotlib.rs
+++ b/subplotlib/tests/subplotlib.rs
@@ -128,6 +128,7 @@ fn embedded_files() {
let step = BUILDER_acquire_file_content::default()
.file({
use std::path::PathBuf;
+ // example.txt
let target_name: PathBuf = base64_decode("ZXhhbXBsZS50eHQ=").into();
SUBPLOT_EMBEDDED_FILES
.iter()
@@ -135,17 +136,26 @@ fn embedded_files() {
.expect("Unable to find file at runtime")
.clone()
})
- .somename(&base64_decode("RVhBTVBMRQ=="))
+ .somename(
+ // "EXAMPLE"
+ &base64_decode("RVhBTVBMRQ=="),
+ )
.build();
scenario.add_step(step, None);
let step = BUILDER_remember_target::default()
- .somename(&base64_decode("RVhBTVBMRQ=="))
+ .somename(
+ // "EXAMPLE"
+ &base64_decode("RVhBTVBMRQ=="),
+ )
.build();
scenario.add_step(step, None);
let step = BUILDER_check_contents::default()
- .text(&base64_decode("d2lsbCBiZSBlbWJlZGRlZA=="))
+ .text(
+ // "will be embedded"
+ &base64_decode("d2lsbCBiZSBlbWJlZGRlZA=="),
+ )
.build();
scenario.add_step(step, None);