MCPcopy Index your code
hub / github.com/endbasic/endbasic / test_dim_consecutive

Function test_dim_consecutive

core/src/parser.rs:2659–2686  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

2657
2658 #[test]
2659 fn test_dim_consecutive() {
2660 do_ok_test(
2661 "DIM i\nDIM j AS BOOLEAN\nDIM k",
2662 &[
2663 Statement::Dim(DimSpan {
2664 name: "i".to_owned(),
2665 name_pos: lc(1, 5),
2666 shared: false,
2667 vtype: ExprType::Integer,
2668 vtype_pos: lc(1, 6),
2669 }),
2670 Statement::Dim(DimSpan {
2671 name: "j".to_owned(),
2672 name_pos: lc(2, 5),
2673 shared: false,
2674 vtype: ExprType::Boolean,
2675 vtype_pos: lc(2, 10),
2676 }),
2677 Statement::Dim(DimSpan {
2678 name: "k".to_owned(),
2679 name_pos: lc(3, 5),
2680 shared: false,
2681 vtype: ExprType::Integer,
2682 vtype_pos: lc(3, 6),
2683 }),
2684 ],
2685 );
2686 }
2687
2688 #[test]
2689 fn test_dim_shared() {

Callers

nothing calls this directly

Calls 2

lcFunction · 0.85
do_ok_testFunction · 0.70

Tested by

no test coverage detected