diff --git a/src/theme/mod.rs b/src/theme/mod.rs index 663e2c7..31ce549 100644 --- a/src/theme/mod.rs +++ b/src/theme/mod.rs @@ -138,12 +138,17 @@ impl Index for EmbeddedLazyThemeSet { // NOTE: doc comment HTML is copied from the tests/docs_watchdog/theme.rs tests /// An enum that represents all themes included in [`EmbeddedLazyThemeSet`] /// -/// A demo is included for how each theme highlights the following Elixir snippet +/// A demo is included for how each theme highlights the following Julia snippet adapted from the +/// Julia _Getting Started_ manual /// -/// ```elixir -/// There currently is no ternary operator like true ? "yes" : "no" -/// # So the following is suggested -/// "no" = if 1 == 0, do: "yes", else: "no" +/// ```julia +/// # sends a variety of values over a channel +/// function producer(c::Channel) +/// for n=1:4 +/// put!(c, 2n) +/// end +/// put!(c, "stop") +/// end; /// ``` #[derive(Clone, Copy, Debug, Hash, PartialEq, Eq, PartialOrd, Ord)] #[cfg_attr(test, derive(strum::EnumIter))] @@ -159,33 +164,49 @@ pub enum EmbeddedThemeName { /// Base16 Eighties Dark /// ///
-    /// # There currently is no ternary operator like  true ? "yes" : "no"
-    /// # So the following is suggested
-    /// "no" = if 1 == 0, do: "yes", else: "no"
+    /// # sends a variety of values over a channel
+    /// function producer(c::Channel)
+    ///     for n=1:4
+    ///         put!(c, 2n)
+    ///     end
+    ///     put!(c, "stop")
+    /// end;
     /// 
Base16EightiesDark, /// Base16 Mocha Dark Theme /// ///
-    /// # There currently is no ternary operator like  true ? "yes" : "no"
-    /// # So the following is suggested
-    /// "no" = if 1 == 0, do: "yes", else: "no"
+    /// # sends a variety of values over a channel
+    /// function producer(c::Channel)
+    ///     for n=1:4
+    ///         put!(c, 2n)
+    ///     end
+    ///     put!(c, "stop")
+    /// end;
     /// 
Base16MochaDark, /// Base16 Ocean Dark /// ///
-    /// # There currently is no ternary operator like  true ? "yes" : "no"
-    /// # So the following is suggested
-    /// "no" = if 1 == 0, do: "yes", else: "no"
+    /// # sends a variety of values over a channel
+    /// function producer(c::Channel)
+    ///     for n=1:4
+    ///         put!(c, 2n)
+    ///     end
+    ///     put!(c, "stop")
+    /// end;
     /// 
Base16OceanDark, /// Base16 Ocean Light /// ///
-    /// # There currently is no ternary operator like  true ? "yes" : "no"
-    /// # So the following is suggested
-    /// "no" = if 1 == 0, do: "yes", else: "no"
+    /// # sends a variety of values over a channel
+    /// function producer(c::Channel)
+    ///     for n=1:4
+    ///         put!(c, 2n)
+    ///     end
+    ///     put!(c, "stop")
+    /// end;
     /// 
Base16OceanLight, /// Base16 256 @@ -195,201 +216,301 @@ pub enum EmbeddedThemeName { /// Catppuccin Frappe /// ///
-    /// # There currently is no ternary operator like  true ? "yes" : "no"
-    /// # So the following is suggested
-    /// "no" = if 1 == 0, do: "yes", else: "no"
+    /// # sends a variety of values over a channel
+    /// function producer(c::Channel)
+    ///     for n=1:4
+    ///         put!(c, 2n)
+    ///     end
+    ///     put!(c, "stop")
+    /// end;
     /// 
CatppuccinFrappe, /// Catppuccin Latte /// ///
-    /// # There currently is no ternary operator like  true ? "yes" : "no"
-    /// # So the following is suggested
-    /// "no" = if 1 == 0, do: "yes", else: "no"
+    /// # sends a variety of values over a channel
+    /// function producer(c::Channel)
+    ///     for n=1:4
+    ///         put!(c, 2n)
+    ///     end
+    ///     put!(c, "stop")
+    /// end;
     /// 
CatppuccinLatte, /// Catppuccin Macchiato /// ///
-    /// # There currently is no ternary operator like  true ? "yes" : "no"
-    /// # So the following is suggested
-    /// "no" = if 1 == 0, do: "yes", else: "no"
+    /// # sends a variety of values over a channel
+    /// function producer(c::Channel)
+    ///     for n=1:4
+    ///         put!(c, 2n)
+    ///     end
+    ///     put!(c, "stop")
+    /// end;
     /// 
CatppuccinMacchiato, /// Catppuccin Mocha /// ///
-    /// # There currently is no ternary operator like  true ? "yes" : "no"
-    /// # So the following is suggested
-    /// "no" = if 1 == 0, do: "yes", else: "no"
+    /// # sends a variety of values over a channel
+    /// function producer(c::Channel)
+    ///     for n=1:4
+    ///         put!(c, 2n)
+    ///     end
+    ///     put!(c, "stop")
+    /// end;
     /// 
CatppuccinMocha, /// Coldark-Cold /// ///
-    /// # There currently is no ternary operator like  true ? "yes" : "no"
-    /// # So the following is suggested
-    /// "no" = if 1 == 0, do: "yes", else: "no"
+    /// # sends a variety of values over a channel
+    /// function producer(c::Channel)
+    ///     for n=1:4
+    ///         put!(c, 2n)
+    ///     end
+    ///     put!(c, "stop")
+    /// end;
     /// 
ColdarkCold, /// Coldark-Dark /// ///
-    /// # There currently is no ternary operator like  true ? "yes" : "no"
-    /// # So the following is suggested
-    /// "no" = if 1 == 0, do: "yes", else: "no"
+    /// # sends a variety of values over a channel
+    /// function producer(c::Channel)
+    ///     for n=1:4
+    ///         put!(c, 2n)
+    ///     end
+    ///     put!(c, "stop")
+    /// end;
     /// 
ColdarkDark, /// Dark Neon /// ///
-    /// # There currently is no ternary operator like  true ? "yes" : "no"
-    /// # So the following is suggested
-    /// "no" = if 1 == 0, do: "yes", else: "no"
+    /// # sends a variety of values over a channel
+    /// function producer(c::Channel)
+    ///     for n=1:4
+    ///         put!(c, 2n)
+    ///     end
+    ///     put!(c, "stop")
+    /// end;
     /// 
DarkNeon, /// Dracula /// ///
-    /// # There currently is no ternary operator like  true ? "yes" : "no"
-    /// # So the following is suggested
-    /// "no" = if 1 == 0, do: "yes", else: "no"
+    /// # sends a variety of values over a channel
+    /// function producer(c::Channel)
+    ///     for n=1:4
+    ///         put!(c, 2n)
+    ///     end
+    ///     put!(c, "stop")
+    /// end;
     /// 
Dracula, /// GitHub /// ///
-    /// # There currently is no ternary operator like  true ? "yes" : "no"
-    /// # So the following is suggested
-    /// "no" = if 1 == 0, do: "yes", else: "no"
+    /// # sends a variety of values over a channel
+    /// function producer(c::Channel)
+    ///     for n=1:4
+    ///         put!(c, 2n)
+    ///     end
+    ///     put!(c, "stop")
+    /// end;
     /// 
Github, /// gruvbox (Dark) /// ///
-    /// # There currently is no ternary operator like  true ? "yes" : "no"
-    /// # So the following is suggested
-    /// "no" = if 1 == 0, do: "yes", else: "no"
+    /// # sends a variety of values over a channel
+    /// function producer(c::Channel)
+    ///     for n=1:4
+    ///         put!(c, 2n)
+    ///     end
+    ///     put!(c, "stop")
+    /// end;
     /// 
GruvboxDark, /// gruvbox (Light) /// ///
-    /// # There currently is no ternary operator like  true ? "yes" : "no"
-    /// # So the following is suggested
-    /// "no" = if 1 == 0, do: "yes", else: "no"
+    /// # sends a variety of values over a channel
+    /// function producer(c::Channel)
+    ///     for n=1:4
+    ///         put!(c, 2n)
+    ///     end
+    ///     put!(c, "stop")
+    /// end;
     /// 
GruvboxLight, /// Inspired GitHub /// ///
-    /// # There currently is no ternary operator like  true ? "yes" : "no"
-    /// # So the following is suggested
-    /// "no" = if 1 == 0, do: "yes", else: "no"
+    /// # sends a variety of values over a channel
+    /// function producer(c::Channel)
+    ///     for n=1:4
+    ///         put!(c, 2n)
+    ///     end
+    ///     put!(c, "stop")
+    /// end;
     /// 
InspiredGithub, /// 1337 /// ///
-    /// # There currently is no ternary operator like  true ? "yes" : "no"
-    /// # So the following is suggested
-    /// "no" = if 1 == 0, do: "yes", else: "no"
+    /// # sends a variety of values over a channel
+    /// function producer(c::Channel)
+    ///     for n=1:4
+    ///         put!(c, 2n)
+    ///     end
+    ///     put!(c, "stop")
+    /// end;
     /// 
Leet, /// Monokai Extended /// ///
-    /// # There currently is no ternary operator like  true ? "yes" : "no"
-    /// # So the following is suggested
-    /// "no" = if 1 == 0, do: "yes", else: "no"
+    /// # sends a variety of values over a channel
+    /// function producer(c::Channel)
+    ///     for n=1:4
+    ///         put!(c, 2n)
+    ///     end
+    ///     put!(c, "stop")
+    /// end;
     /// 
MonokaiExtended, /// Monokai Extended Bright /// ///
-    /// # There currently is no ternary operator like  true ? "yes" : "no"
-    /// # So the following is suggested
-    /// "no" = if 1 == 0, do: "yes", else: "no"
+    /// # sends a variety of values over a channel
+    /// function producer(c::Channel)
+    ///     for n=1:4
+    ///         put!(c, 2n)
+    ///     end
+    ///     put!(c, "stop")
+    /// end;
     /// 
MonokaiExtendedBright, /// Monokai Extended Light /// ///
-    /// # There currently is no ternary operator like  true ? "yes" : "no"
-    /// # So the following is suggested
-    /// "no" = if 1 == 0, do: "yes", else: "no"
+    /// # sends a variety of values over a channel
+    /// function producer(c::Channel)
+    ///     for n=1:4
+    ///         put!(c, 2n)
+    ///     end
+    ///     put!(c, "stop")
+    /// end;
     /// 
MonokaiExtendedLight, /// Monokai Extended Origin /// ///
-    /// # There currently is no ternary operator like  true ? "yes" : "no"
-    /// # So the following is suggested
-    /// "no" = if 1 == 0, do: "yes", else: "no"
+    /// # sends a variety of values over a channel
+    /// function producer(c::Channel)
+    ///     for n=1:4
+    ///         put!(c, 2n)
+    ///     end
+    ///     put!(c, "stop")
+    /// end;
     /// 
MonokaiExtendedOrigin, /// Nord /// ///
-    /// # There currently is no ternary operator like  true ? "yes" : "no"
-    /// # So the following is suggested
-    /// "no" = if 1 == 0, do: "yes", else: "no"
+    /// # sends a variety of values over a channel
+    /// function producer(c::Channel)
+    ///     for n=1:4
+    ///         put!(c, 2n)
+    ///     end
+    ///     put!(c, "stop")
+    /// end;
     /// 
Nord, /// One Half Dark /// ///
-    /// # There currently is no ternary operator like  true ? "yes" : "no"
-    /// # So the following is suggested
-    /// "no" = if 1 == 0, do: "yes", else: "no"
+    /// # sends a variety of values over a channel
+    /// function producer(c::Channel)
+    ///     for n=1:4
+    ///         put!(c, 2n)
+    ///     end
+    ///     put!(c, "stop")
+    /// end;
     /// 
OneHalfDark, /// One Half Light /// ///
-    /// # There currently is no ternary operator like  true ? "yes" : "no"
-    /// # So the following is suggested
-    /// "no" = if 1 == 0, do: "yes", else: "no"
+    /// # sends a variety of values over a channel
+    /// function producer(c::Channel)
+    ///     for n=1:4
+    ///         put!(c, 2n)
+    ///     end
+    ///     put!(c, "stop")
+    /// end;
     /// 
OneHalfLight, /// Solarized (dark) /// ///
-    /// # There currently is no ternary operator like  true ? "yes" : "no"
-    /// # So the following is suggested
-    /// "no" = if 1 == 0, do: "yes", else: "no"
+    /// # sends a variety of values over a channel
+    /// function producer(c::Channel)
+    ///     for n=1:4
+    ///         put!(c, 2n)
+    ///     end
+    ///     put!(c, "stop")
+    /// end;
     /// 
SolarizedDark, /// Solarized (light) /// ///
-    /// # There currently is no ternary operator like  true ? "yes" : "no"
-    /// # So the following is suggested
-    /// "no" = if 1 == 0, do: "yes", else: "no"
+    /// # sends a variety of values over a channel
+    /// function producer(c::Channel)
+    ///     for n=1:4
+    ///         put!(c, 2n)
+    ///     end
+    ///     put!(c, "stop")
+    /// end;
     /// 
SolarizedLight, /// Sublime Snazzy /// ///
-    /// # There currently is no ternary operator like  true ? "yes" : "no"
-    /// # So the following is suggested
-    /// "no" = if 1 == 0, do: "yes", else: "no"
+    /// # sends a variety of values over a channel
+    /// function producer(c::Channel)
+    ///     for n=1:4
+    ///         put!(c, 2n)
+    ///     end
+    ///     put!(c, "stop")
+    /// end;
     /// 
SublimeSnazzy, /// TwoDark /// ///
-    /// # There currently is no ternary operator like  true ? "yes" : "no"
-    /// # So the following is suggested
-    /// "no" = if 1 == 0, do: "yes", else: "no"
+    /// # sends a variety of values over a channel
+    /// function producer(c::Channel)
+    ///     for n=1:4
+    ///         put!(c, 2n)
+    ///     end
+    ///     put!(c, "stop")
+    /// end;
     /// 
TwoDark, /// zenburn /// ///
-    /// # There currently is no ternary operator like  true ? "yes" : "no"
-    /// # So the following is suggested
-    /// "no" = if 1 == 0, do: "yes", else: "no"
+    /// # sends a variety of values over a channel
+    /// function producer(c::Channel)
+    ///     for n=1:4
+    ///         put!(c, 2n)
+    ///     end
+    ///     put!(c, "stop")
+    /// end;
     /// 
Zenburn, } diff --git a/tests/docs_watchdog/theme.rs b/tests/docs_watchdog/theme.rs index 5c4439a..f60b580 100644 --- a/tests/docs_watchdog/theme.rs +++ b/tests/docs_watchdog/theme.rs @@ -1,8 +1,12 @@ use two_face::theme::EmbeddedThemeName; -const SAMPLE_ELIXIR: &str = r#"# There currently is no ternary operator like true ? "yes" : "no" -# So the following is suggested -"no" = if 1 == 0, do: "yes", else: "no" +const SAMPLE_ELIXIR: &str = r#"# sends a variety of values over a channel +function producer(c::Channel) + for n=1:4 + put!(c, 2n) + end + put!(c, "stop") +end; "#; fn sample_html(name: EmbeddedThemeName) -> String { @@ -18,13 +22,17 @@ fn sample_html(name: EmbeddedThemeName) -> String { fn ansi() { insta::assert_snapshot!( sample_html(EmbeddedThemeName::Ansi), - @r###" + @r#"
-    # There currently is no ternary operator like  true ? "yes" : "no"
-    # So the following is suggested
-    "no" = if 1 == 0, do: "yes", else: "no"
+    # sends a variety of values over a channel
+    function producer(c::Channel)
+        for n=1:4
+            put!(c, 2n)
+        end
+        put!(c, "stop")
+    end;
     
- "### + "# ); } @@ -32,13 +40,17 @@ fn ansi() { fn base16() { insta::assert_snapshot!( sample_html(EmbeddedThemeName::Base16), - @r###" + @r#"
-    # There currently is no ternary operator like  true ? "yes" : "no"
-    # So the following is suggested
-    "no" = if 1 == 0, do: "yes", else: "no"
+    # sends a variety of values over a channel
+    function producer(c::Channel)
+        for n=1:4
+            put!(c, 2n)
+        end
+        put!(c, "stop")
+    end;
     
- "### + "# ); } @@ -46,13 +58,17 @@ fn base16() { fn base16_eighties_dark() { insta::assert_snapshot!( sample_html(EmbeddedThemeName::Base16EightiesDark), - @r###" + @r#"
-    # There currently is no ternary operator like  true ? "yes" : "no"
-    # So the following is suggested
-    "no" = if 1 == 0, do: "yes", else: "no"
+    # sends a variety of values over a channel
+    function producer(c::Channel)
+        for n=1:4
+            put!(c, 2n)
+        end
+        put!(c, "stop")
+    end;
     
- "### + "# ); } @@ -60,13 +76,17 @@ fn base16_eighties_dark() { fn base16_mocha_dark() { insta::assert_snapshot!( sample_html(EmbeddedThemeName::Base16MochaDark), - @r###" + @r#"
-    # There currently is no ternary operator like  true ? "yes" : "no"
-    # So the following is suggested
-    "no" = if 1 == 0, do: "yes", else: "no"
+    # sends a variety of values over a channel
+    function producer(c::Channel)
+        for n=1:4
+            put!(c, 2n)
+        end
+        put!(c, "stop")
+    end;
     
- "### + "# ); } @@ -74,13 +94,17 @@ fn base16_mocha_dark() { fn base16_ocean_dark() { insta::assert_snapshot!( sample_html(EmbeddedThemeName::Base16OceanDark), - @r###" + @r#"
-    # There currently is no ternary operator like  true ? "yes" : "no"
-    # So the following is suggested
-    "no" = if 1 == 0, do: "yes", else: "no"
+    # sends a variety of values over a channel
+    function producer(c::Channel)
+        for n=1:4
+            put!(c, 2n)
+        end
+        put!(c, "stop")
+    end;
     
- "### + "# ); } @@ -88,13 +112,17 @@ fn base16_ocean_dark() { fn base16_ocean_light() { insta::assert_snapshot!( sample_html(EmbeddedThemeName::Base16OceanLight), - @r###" + @r#"
-    # There currently is no ternary operator like  true ? "yes" : "no"
-    # So the following is suggested
-    "no" = if 1 == 0, do: "yes", else: "no"
+    # sends a variety of values over a channel
+    function producer(c::Channel)
+        for n=1:4
+            put!(c, 2n)
+        end
+        put!(c, "stop")
+    end;
     
- "### + "# ); } @@ -102,13 +130,17 @@ fn base16_ocean_light() { fn base16_256() { insta::assert_snapshot!( sample_html(EmbeddedThemeName::Base16_256), - @r###" + @r#"
-    # There currently is no ternary operator like  true ? "yes" : "no"
-    # So the following is suggested
-    "no" = if 1 == 0, do: "yes", else: "no"
+    # sends a variety of values over a channel
+    function producer(c::Channel)
+        for n=1:4
+            put!(c, 2n)
+        end
+        put!(c, "stop")
+    end;
     
- "### + "# ); } @@ -118,9 +150,13 @@ fn catppuccin_frappe() { sample_html(EmbeddedThemeName::CatppuccinFrappe), @r#"
-    # There currently is no ternary operator like  true ? "yes" : "no"
-    # So the following is suggested
-    "no" = if 1 == 0, do: "yes", else: "no"
+    # sends a variety of values over a channel
+    function producer(c::Channel)
+        for n=1:4
+            put!(c, 2n)
+        end
+        put!(c, "stop")
+    end;
     
"# ); @@ -131,9 +167,13 @@ fn catppuccin_latte() { insta::assert_snapshot!(sample_html(EmbeddedThemeName::CatppuccinLatte), @r#"
-    # There currently is no ternary operator like  true ? "yes" : "no"
-    # So the following is suggested
-    "no" = if 1 == 0, do: "yes", else: "no"
+    # sends a variety of values over a channel
+    function producer(c::Channel)
+        for n=1:4
+            put!(c, 2n)
+        end
+        put!(c, "stop")
+    end;
     
"# ); @@ -144,9 +184,13 @@ fn catppuccin_macchiato() { insta::assert_snapshot!(sample_html(EmbeddedThemeName::CatppuccinMacchiato), @r#"
-    # There currently is no ternary operator like  true ? "yes" : "no"
-    # So the following is suggested
-    "no" = if 1 == 0, do: "yes", else: "no"
+    # sends a variety of values over a channel
+    function producer(c::Channel)
+        for n=1:4
+            put!(c, 2n)
+        end
+        put!(c, "stop")
+    end;
     
"# ); @@ -157,9 +201,13 @@ fn catppuccin_mocha() { insta::assert_snapshot!(sample_html(EmbeddedThemeName::CatppuccinMocha), @r#"
-    # There currently is no ternary operator like  true ? "yes" : "no"
-    # So the following is suggested
-    "no" = if 1 == 0, do: "yes", else: "no"
+    # sends a variety of values over a channel
+    function producer(c::Channel)
+        for n=1:4
+            put!(c, 2n)
+        end
+        put!(c, "stop")
+    end;
     
"# ); @@ -169,13 +217,17 @@ fn catppuccin_mocha() { fn coldark_cold() { insta::assert_snapshot!( sample_html(EmbeddedThemeName::ColdarkCold), - @r###" + @r#"
-    # There currently is no ternary operator like  true ? "yes" : "no"
-    # So the following is suggested
-    "no" = if 1 == 0, do: "yes", else: "no"
+    # sends a variety of values over a channel
+    function producer(c::Channel)
+        for n=1:4
+            put!(c, 2n)
+        end
+        put!(c, "stop")
+    end;
     
- "### + "# ); } @@ -183,13 +235,17 @@ fn coldark_cold() { fn coldark_dark() { insta::assert_snapshot!( sample_html(EmbeddedThemeName::ColdarkDark), - @r###" + @r#"
-    # There currently is no ternary operator like  true ? "yes" : "no"
-    # So the following is suggested
-    "no" = if 1 == 0, do: "yes", else: "no"
+    # sends a variety of values over a channel
+    function producer(c::Channel)
+        for n=1:4
+            put!(c, 2n)
+        end
+        put!(c, "stop")
+    end;
     
- "### + "# ); } @@ -197,13 +253,17 @@ fn coldark_dark() { fn dark_neon() { insta::assert_snapshot!( sample_html(EmbeddedThemeName::DarkNeon), - @r###" + @r#"
-    # There currently is no ternary operator like  true ? "yes" : "no"
-    # So the following is suggested
-    "no" = if 1 == 0, do: "yes", else: "no"
+    # sends a variety of values over a channel
+    function producer(c::Channel)
+        for n=1:4
+            put!(c, 2n)
+        end
+        put!(c, "stop")
+    end;
     
- "### + "# ); } @@ -211,13 +271,17 @@ fn dark_neon() { fn dracula() { insta::assert_snapshot!( sample_html(EmbeddedThemeName::Dracula), - @r###" + @r#"
-    # There currently is no ternary operator like  true ? "yes" : "no"
-    # So the following is suggested
-    "no" = if 1 == 0, do: "yes", else: "no"
+    # sends a variety of values over a channel
+    function producer(c::Channel)
+        for n=1:4
+            put!(c, 2n)
+        end
+        put!(c, "stop")
+    end;
     
- "### + "# ); } @@ -225,13 +289,17 @@ fn dracula() { fn github() { insta::assert_snapshot!( sample_html(EmbeddedThemeName::Github), - @r###" + @r#"
-    # There currently is no ternary operator like  true ? "yes" : "no"
-    # So the following is suggested
-    "no" = if 1 == 0, do: "yes", else: "no"
+    # sends a variety of values over a channel
+    function producer(c::Channel)
+        for n=1:4
+            put!(c, 2n)
+        end
+        put!(c, "stop")
+    end;
     
- "### + "# ); } @@ -239,13 +307,17 @@ fn github() { fn gruvbox_dark() { insta::assert_snapshot!( sample_html(EmbeddedThemeName::GruvboxDark), - @r###" + @r#"
-    # There currently is no ternary operator like  true ? "yes" : "no"
-    # So the following is suggested
-    "no" = if 1 == 0, do: "yes", else: "no"
+    # sends a variety of values over a channel
+    function producer(c::Channel)
+        for n=1:4
+            put!(c, 2n)
+        end
+        put!(c, "stop")
+    end;
     
- "### + "# ); } @@ -253,13 +325,17 @@ fn gruvbox_dark() { fn gruvbox_light() { insta::assert_snapshot!( sample_html(EmbeddedThemeName::GruvboxLight), - @r###" + @r#"
-    # There currently is no ternary operator like  true ? "yes" : "no"
-    # So the following is suggested
-    "no" = if 1 == 0, do: "yes", else: "no"
+    # sends a variety of values over a channel
+    function producer(c::Channel)
+        for n=1:4
+            put!(c, 2n)
+        end
+        put!(c, "stop")
+    end;
     
- "### + "# ); } @@ -267,13 +343,17 @@ fn gruvbox_light() { fn inspired_github() { insta::assert_snapshot!( sample_html(EmbeddedThemeName::InspiredGithub), - @r###" + @r#"
-    # There currently is no ternary operator like  true ? "yes" : "no"
-    # So the following is suggested
-    "no" = if 1 == 0, do: "yes", else: "no"
+    # sends a variety of values over a channel
+    function producer(c::Channel)
+        for n=1:4
+            put!(c, 2n)
+        end
+        put!(c, "stop")
+    end;
     
- "### + "# ); } @@ -281,13 +361,17 @@ fn inspired_github() { fn leet() { insta::assert_snapshot!( sample_html(EmbeddedThemeName::Leet), - @r###" + @r#"
-    # There currently is no ternary operator like  true ? "yes" : "no"
-    # So the following is suggested
-    "no" = if 1 == 0, do: "yes", else: "no"
+    # sends a variety of values over a channel
+    function producer(c::Channel)
+        for n=1:4
+            put!(c, 2n)
+        end
+        put!(c, "stop")
+    end;
     
- "### + "# ); } @@ -295,13 +379,17 @@ fn leet() { fn monokai_extended() { insta::assert_snapshot!( sample_html(EmbeddedThemeName::MonokaiExtended), - @r###" + @r#"
-    # There currently is no ternary operator like  true ? "yes" : "no"
-    # So the following is suggested
-    "no" = if 1 == 0, do: "yes", else: "no"
+    # sends a variety of values over a channel
+    function producer(c::Channel)
+        for n=1:4
+            put!(c, 2n)
+        end
+        put!(c, "stop")
+    end;
     
- "### + "# ); } @@ -309,13 +397,17 @@ fn monokai_extended() { fn monokai_extended_bright() { insta::assert_snapshot!( sample_html(EmbeddedThemeName::MonokaiExtendedBright), - @r###" + @r#"
-    # There currently is no ternary operator like  true ? "yes" : "no"
-    # So the following is suggested
-    "no" = if 1 == 0, do: "yes", else: "no"
+    # sends a variety of values over a channel
+    function producer(c::Channel)
+        for n=1:4
+            put!(c, 2n)
+        end
+        put!(c, "stop")
+    end;
     
- "### + "# ); } @@ -323,13 +415,17 @@ fn monokai_extended_bright() { fn monokai_extended_light() { insta::assert_snapshot!( sample_html(EmbeddedThemeName::MonokaiExtendedLight), - @r###" + @r#"
-    # There currently is no ternary operator like  true ? "yes" : "no"
-    # So the following is suggested
-    "no" = if 1 == 0, do: "yes", else: "no"
+    # sends a variety of values over a channel
+    function producer(c::Channel)
+        for n=1:4
+            put!(c, 2n)
+        end
+        put!(c, "stop")
+    end;
     
- "### + "# ); } @@ -337,13 +433,17 @@ fn monokai_extended_light() { fn monokai_extended_origin() { insta::assert_snapshot!( sample_html(EmbeddedThemeName::MonokaiExtendedOrigin), - @r###" + @r#"
-    # There currently is no ternary operator like  true ? "yes" : "no"
-    # So the following is suggested
-    "no" = if 1 == 0, do: "yes", else: "no"
+    # sends a variety of values over a channel
+    function producer(c::Channel)
+        for n=1:4
+            put!(c, 2n)
+        end
+        put!(c, "stop")
+    end;
     
- "### + "# ); } @@ -351,13 +451,17 @@ fn monokai_extended_origin() { fn nord() { insta::assert_snapshot!( sample_html(EmbeddedThemeName::Nord), - @r###" + @r#"
-    # There currently is no ternary operator like  true ? "yes" : "no"
-    # So the following is suggested
-    "no" = if 1 == 0, do: "yes", else: "no"
+    # sends a variety of values over a channel
+    function producer(c::Channel)
+        for n=1:4
+            put!(c, 2n)
+        end
+        put!(c, "stop")
+    end;
     
- "### + "# ); } @@ -365,13 +469,17 @@ fn nord() { fn one_half_dark() { insta::assert_snapshot!( sample_html(EmbeddedThemeName::OneHalfDark), - @r###" + @r#"
-    # There currently is no ternary operator like  true ? "yes" : "no"
-    # So the following is suggested
-    "no" = if 1 == 0, do: "yes", else: "no"
+    # sends a variety of values over a channel
+    function producer(c::Channel)
+        for n=1:4
+            put!(c, 2n)
+        end
+        put!(c, "stop")
+    end;
     
- "### + "# ); } @@ -379,13 +487,17 @@ fn one_half_dark() { fn one_half_light() { insta::assert_snapshot!( sample_html(EmbeddedThemeName::OneHalfLight), - @r###" + @r#"
-    # There currently is no ternary operator like  true ? "yes" : "no"
-    # So the following is suggested
-    "no" = if 1 == 0, do: "yes", else: "no"
+    # sends a variety of values over a channel
+    function producer(c::Channel)
+        for n=1:4
+            put!(c, 2n)
+        end
+        put!(c, "stop")
+    end;
     
- "### + "# ); } @@ -393,13 +505,17 @@ fn one_half_light() { fn solarized_dark() { insta::assert_snapshot!( sample_html(EmbeddedThemeName::SolarizedDark), - @r###" + @r#"
-    # There currently is no ternary operator like  true ? "yes" : "no"
-    # So the following is suggested
-    "no" = if 1 == 0, do: "yes", else: "no"
+    # sends a variety of values over a channel
+    function producer(c::Channel)
+        for n=1:4
+            put!(c, 2n)
+        end
+        put!(c, "stop")
+    end;
     
- "### + "# ); } @@ -407,13 +523,17 @@ fn solarized_dark() { fn solarized_light() { insta::assert_snapshot!( sample_html(EmbeddedThemeName::SolarizedLight), - @r###" + @r#"
-    # There currently is no ternary operator like  true ? "yes" : "no"
-    # So the following is suggested
-    "no" = if 1 == 0, do: "yes", else: "no"
+    # sends a variety of values over a channel
+    function producer(c::Channel)
+        for n=1:4
+            put!(c, 2n)
+        end
+        put!(c, "stop")
+    end;
     
- "### + "# ); } @@ -421,13 +541,17 @@ fn solarized_light() { fn sublime_snazzy() { insta::assert_snapshot!( sample_html(EmbeddedThemeName::SublimeSnazzy), - @r###" + @r#"
-    # There currently is no ternary operator like  true ? "yes" : "no"
-    # So the following is suggested
-    "no" = if 1 == 0, do: "yes", else: "no"
+    # sends a variety of values over a channel
+    function producer(c::Channel)
+        for n=1:4
+            put!(c, 2n)
+        end
+        put!(c, "stop")
+    end;
     
- "### + "# ); } @@ -435,13 +559,17 @@ fn sublime_snazzy() { fn two_dark() { insta::assert_snapshot!( sample_html(EmbeddedThemeName::TwoDark), - @r###" + @r#"
-    # There currently is no ternary operator like  true ? "yes" : "no"
-    # So the following is suggested
-    "no" = if 1 == 0, do: "yes", else: "no"
+    # sends a variety of values over a channel
+    function producer(c::Channel)
+        for n=1:4
+            put!(c, 2n)
+        end
+        put!(c, "stop")
+    end;
     
- "### + "# ); } @@ -451,9 +579,13 @@ fn zenburn() { sample_html(EmbeddedThemeName::Zenburn), @r#"
-    # There currently is no ternary operator like  true ? "yes" : "no"
-    # So the following is suggested
-    "no" = if 1 == 0, do: "yes", else: "no"
+    # sends a variety of values over a channel
+    function producer(c::Channel)
+        for n=1:4
+            put!(c, 2n)
+        end
+        put!(c, "stop")
+    end;
     
"# );