Skip to content

Commit

Permalink
extra transpose test
Browse files Browse the repository at this point in the history
  • Loading branch information
dragazo committed Oct 19, 2023
1 parent 6996f72 commit c75333c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/test/blocks/list-columns.xml
Original file line number Diff line number Diff line change
@@ -1 +1 @@
<blocks app="NetsBlox 1.33.3, http://netsblox.org" version="1.33.3"><block-definition collabId="item_0" s="main" type="reporter" category="custom"><header></header><code></code><translations></translations><inputs></inputs><script><block collabId="item_1" s="doDeclareVariables"><list><l>res</l></list></block><block collabId="item_88" s="doSetVar"><l>res</l><block collabId="item_90" s="reportNewList"><list></list></block></block><block collabId="item_5" s="doAddToList"><block collabId="item_31" s="reportListAttribute"><l><option>columns</option></l><block collabId="item_31_1" s="reportNumbers"><l>1</l><l>10</l></block></block><block collabId="item_6" var="res"/></block><block collabId="item_33" s="doAddToList"><block collabId="item_35" s="reportListAttribute"><l><option>columns</option></l><block collabId="item_35_1" s="reportNewList"><list><l>1</l><l>2</l><block collabId="item_35_2" s="reportNewList"><list><l>3</l><l>4</l><l>5</l></list></block><l>6</l><l>7</l></list></block></block><block collabId="item_33_2" var="res"/></block><block collabId="item_65" s="doAddToList"><block collabId="item_67" s="reportListAttribute"><l><option>columns</option></l><block collabId="item_67_1" s="reportNewList"><list><l>1</l><l>2</l><block collabId="item_67_2" s="reportNewList"><list><l>3</l><l>4</l><l>5</l></list></block><block collabId="item_67_3" s="reportNewList"><list><l>6</l><l>7</l></list></block><block collabId="item_67_4" s="reportNewList"><list><l>8</l></list></block><l>9</l></list></block></block><block collabId="item_65_2" var="res"/></block><block collabId="item_83" s="doAddToList"><block collabId="item_85" s="reportListAttribute"><l><option>columns</option></l><block collabId="item_85_1" s="reportNewList"><list><l>1</l><block collabId="item_85_2" s="reportNewList"><list><l>2</l><block collabId="item_85_4" s="reportNewList"><list><l>3</l><l>4</l></list></block><l>5</l><block collabId="item_85_5" s="reportNewList"><list><l>6</l></list></block></list></block><block collabId="item_85_3" s="reportNewList"><list><l>7</l><l>8</l></list></block><l>9</l></list></block></block><block collabId="item_83_2" var="res"/></block><block collabId="item_118" s="doAddToList"><block collabId="item_122" s="reportListAttribute"><l><option>columns</option></l><block collabId="item_122_1" s="reportNewList"><list><l>6</l></list></block></block><block collabId="item_118_2" var="res"/></block><block collabId="item_163" s="doAddToList"><block collabId="item_163_1" s="reportListAttribute"><l><option>columns</option></l><block collabId="item_163_3" s="reportNewList"><list><block collabId="item_164" s="reportNewList"><list></list></block></list></block></block><block collabId="item_163_2" var="res"/></block><block collabId="item_179" s="doAddToList"><block collabId="item_179_1" s="reportListAttribute"><l><option>columns</option></l><block collabId="item_181" s="reportListAttribute"><l><option>columns</option></l><block collabId="item_181_1" s="reportNewList"><list><block collabId="item_181_2" s="reportNewList"><list><block collabId="item_181_3" s="reportNewList"><list></list></block></list></block></list></block></block></block><block collabId="item_179_2" var="res"/></block><block collabId="item_180_5" s="doDeclareVariables"><list><l>t1</l><l>t2</l></list></block><block collabId="item_180_6" s="doSetVar"><l>t1</l><block collabId="item_180_8" s="reportNewList"><list></list></block></block><block collabId="item_180_7" s="doSetVar"><l>t2</l><block collabId="item_180_10" s="reportListAttribute"><l><option>columns</option></l><block collabId="item_180_11" var="t1"/></block></block><block collabId="item_180_9" s="doAddToList"><block collabId="item_180_13" var="t2"/><block collabId="item_180_14" var="res"/></block><block collabId="item_180_12" s="doAddToList"><block collabId="item_180_16" s="reportIsIdentical"><block collabId="item_180_18" var="t1"/><block collabId="item_180_19" var="t2"/></block><block collabId="item_180_17" var="res"/></block><block collabId="item_180_15" s="doReport"><block collabId="item_180_20" var="res"/></block></script></block-definition></blocks>
<blocks app="NetsBlox 2.1.4, http://netsblox.org" version="2.1.4"><block-definition collabId="item_-1_139" s="main" type="reporter" category="custom"><header></header><code></code><translations></translations><inputs></inputs><script><block collabId="item_-1_133" s="doDeclareVariables"><list><l>res</l></list></block><block collabId="item_-1_130" s="doSetVar"><l>res</l><block collabId="item_-1_128" s="reportNewList"><list></list></block></block><block collabId="item_0" s="doAddToList"><block collabId="item_0_1" s="reportListAttribute"><l><option>columns</option></l><block collabId="item_2" s="reportNewList"><list><block collabId="item_3" s="reportNewList"><list><l>1</l><l>2</l><l>3</l></list></block><block collabId="item_4" s="reportNewList"><list><l>4</l><l>5</l></list></block><block collabId="item_5" s="reportNewList"><list><l>6</l></list></block></list></block></block><block collabId="item_0_2" var="res"/></block><block collabId="item_1_4" s="doAddToList"><block collabId="item_1_6" s="reportListAttribute"><l><option>columns</option></l><block collabId="item_1_8" s="reportNumbers"><l>1</l><l>10</l></block></block><block collabId="item_1_7" var="res"/></block><block collabId="item_1_5" s="doAddToList"><block collabId="item_1_10" s="reportListAttribute"><l><option>columns</option></l><block collabId="item_1_12" s="reportNewList"><list><l>1</l><l>2</l><block collabId="item_1_20" s="reportNewList"><list><l>3</l><l>4</l><l>5</l></list></block><l>6</l><l>7</l></list></block></block><block collabId="item_1_11" var="res"/></block><block collabId="item_1_9" s="doAddToList"><block collabId="item_1_14" s="reportListAttribute"><l><option>columns</option></l><block collabId="item_1_16" s="reportNewList"><list><l>1</l><l>2</l><block collabId="item_1_25" s="reportNewList"><list><l>3</l><l>4</l><l>5</l></list></block><block collabId="item_1_26" s="reportNewList"><list><l>6</l><l>7</l></list></block><block collabId="item_1_27" s="reportNewList"><list><l>8</l></list></block><l>9</l></list></block></block><block collabId="item_1_15" var="res"/></block><block collabId="item_1_13" s="doAddToList"><block collabId="item_1_18" s="reportListAttribute"><l><option>columns</option></l><block collabId="item_1_21" s="reportNewList"><list><l>1</l><block collabId="item_1_32" s="reportNewList"><list><l>2</l><block collabId="item_1_34" s="reportNewList"><list><l>3</l><l>4</l></list></block><l>5</l><block collabId="item_1_35" s="reportNewList"><list><l>6</l></list></block></list></block><block collabId="item_1_33" s="reportNewList"><list><l>7</l><l>8</l></list></block><l>9</l></list></block></block><block collabId="item_1_19" var="res"/></block><block collabId="item_1_17" s="doAddToList"><block collabId="item_1_23" s="reportListAttribute"><l><option>columns</option></l><block collabId="item_1_28" s="reportNewList"><list><l>6</l></list></block></block><block collabId="item_1_24" var="res"/></block><block collabId="item_1_22" s="doAddToList"><block collabId="item_1_30" s="reportListAttribute"><l><option>columns</option></l><block collabId="item_1_36" s="reportNewList"><list><block collabId="item_1_42" s="reportNewList"><list></list></block></list></block></block><block collabId="item_1_31" var="res"/></block><block collabId="item_1_29" s="doAddToList"><block collabId="item_1_38" s="reportListAttribute"><l><option>columns</option></l><block collabId="item_1_40" s="reportListAttribute"><l><option>columns</option></l><block collabId="item_1_45" s="reportNewList"><list><block collabId="item_1_46" s="reportNewList"><list><block collabId="item_1_53" s="reportNewList"><list></list></block></list></block></list></block></block></block><block collabId="item_1_39" var="res"/></block><block collabId="item_1_37" s="doDeclareVariables"><list><l>t1</l><l>t2</l></list></block><block collabId="item_1_41" s="doSetVar"><l>t1</l><block collabId="item_1_44" s="reportNewList"><list></list></block></block><block collabId="item_1_43" s="doSetVar"><l>t2</l><block collabId="item_1_48" s="reportListAttribute"><l><option>columns</option></l><block collabId="item_1_49" var="t1"/></block></block><block collabId="item_1_47" s="doAddToList"><block collabId="item_1_51" var="t2"/><block collabId="item_1_52" var="res"/></block><block collabId="item_1_50" s="doAddToList"><block collabId="item_1_55" s="reportIsIdentical"><block collabId="item_1_57" var="t1"/><block collabId="item_1_58" var="t2"/></block><block collabId="item_1_56" var="res"/></block><block collabId="item_1_54" s="doReport"><block collabId="item_1_59" var="res"/></block></script></block-definition></blocks>
5 changes: 5 additions & 0 deletions src/test/process.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1135,6 +1135,11 @@ fn test_proc_list_columns() {

run_till_term(&mut env, |mc, _, res| {
let expect = Value::from_json(mc, json!([
[
["1", "4", "6"],
["2", "5", ""],
["3", "", ""],
],
[[1,2,3,4,5,6,7,8,9,10]],
[
["1", "2", "3", "6", "7"],
Expand Down

0 comments on commit c75333c

Please sign in to comment.