From 784382eddee7e454d1a417a1223882127ae70c84 Mon Sep 17 00:00:00 2001
From: Michael Angerman <1809991+stormasm@users.noreply.github.com>
Date: Thu, 24 Feb 2022 03:58:20 -0800
Subject: [PATCH] 30 web_tables tests are now passing (#4623)
---
crates/nu_plugin_query/src/web_tables.rs | 1782 +++++++++++-----------
1 file changed, 888 insertions(+), 894 deletions(-)
diff --git a/crates/nu_plugin_query/src/web_tables.rs b/crates/nu_plugin_query/src/web_tables.rs
index a2809dbd26..d60e19a940 100644
--- a/crates/nu_plugin_query/src/web_tables.rs
+++ b/crates/nu_plugin_query/src/web_tables.rs
@@ -331,897 +331,891 @@ fn contains_str(slice: &[String], item: &str) -> bool {
})
}
-// #[cfg(test)]
-// mod tests {
-// use super::*;
-// use crate::query_web::retrieve_tables;
-// use indexmap::indexmap;
-// use nu_protocol::Value;
-
-// const TABLE_EMPTY: &str = r#"
-//
-// "#;
-
-// const TABLE_TH: &str = r#"
-//
-// "#;
-
-// const TABLE_TD: &str = r#"
-//
-// "#;
-
-// const TWO_TABLES_TD: &str = r#"
-//
-//
-// Profession | Civil State |
-//
-// "#;
-
-// const TABLE_TH_TD: &str = r#"
-//
-// Name | Age |
-// John | 20 |
-//
-// "#;
-
-// const TWO_TABLES_TH_TD: &str = r#"
-//
-// Name | Age |
-// John | 20 |
-//
-//
-// Profession | Civil State |
-// Mechanic | Single |
-//
-// "#;
-
-// const TABLE_TD_TD: &str = r#"
-//
-// Name | Age |
-// John | 20 |
-//
-// "#;
-
-// const TABLE_TH_TH: &str = r#"
-//
-// Name | Age |
-// John | 20 |
-//
-// "#;
-
-// const TABLE_COMPLEX: &str = r#"
-//
-// Name | Age | Extra |
-// John | 20 |
-// May | 30 | foo |
-//
-// a | b | c | d |
-//
-// "#;
-
-// const TWO_TABLES_COMPLEX: &str = r#"
-//
-//
-// foo
-//
-//
-// Name | Age | Extra |
-// John | 20 |
-// May | 30 | foo |
-//
-// a | b | c | d |
-//
-//
-// Profession | Civil State | Extra |
-// Carpenter | Single |
-// Mechanic | Married | bar |
-//
-// e | f | g | h |
-//
-//
-//
-// "#;
-
-// const HTML_NO_TABLE: &str = r#"
-//
-//
-// foo
-// Hi.
-//
-// "#;
-
-// const HTML_TWO_TABLES: &str = r#"
-//
-//
-// foo
-//
-//
-// Name | Age |
-// John | 20 |
-//
-//
-// Name | Weight |
-// John | 150 |
-//
-//
-//
-// "#;
-
-// const HTML_TABLE_FRAGMENT: &str = r#"
-//
-// Name | Age |
-// John | 20 |
-//
-//