()
| 177 | |
| 178 | #[test] |
| 179 | fn test_scatter_to_json_has_layout() { |
| 180 | let df = df!["x" => [1.0, 2.0, 3.0], "y" => [4.0, 5.0, 6.0]].unwrap(); |
| 181 | let plot = ScatterPlot::builder().data(&df).x("x").y("y").build(); |
| 182 | let json = to_json_value(&plot); |
| 183 | assert!(json["layout"].is_object()); |
| 184 | } |
| 185 | |
| 186 | #[test] |
| 187 | fn test_scatter_to_json_with_title() { |
nothing calls this directly
no test coverage detected