We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d07ed7c commit c6da08eCopy full SHA for c6da08e
crates/tests/src/lib.rs
@@ -868,6 +868,31 @@ async fn arithmetic() {
868
.assert_stdout("16\n")
869
.run()
870
.await;
871
+
872
+ TestBuilder::new()
873
+ .command("echo $((a=1, ++a))")
874
+ .assert_stdout("2\n")
875
+ .run()
876
+ .await;
877
878
879
+ .command("echo $((a=1, a++))")
880
+ .assert_stdout("1\n")
881
882
883
884
885
+ .command("echo $((a=1, a--))")
886
887
888
889
890
891
+ .command("echo $((a=1, --a))")
892
+ .assert_stdout("0\n")
893
894
895
896
}
897
898
#[tokio::test]
0 commit comments