mirror of
https://github.com/dolthub/dolt.git
synced 2026-02-14 01:07:08 -06:00
A few test tweaks requested in PR
This commit is contained in:
@@ -396,6 +396,18 @@ var DoltWorkspaceScriptTests = []queries.ScriptTest{
|
||||
{3, false, "modified", 50, 23, 81, 50, 23, 52},
|
||||
},
|
||||
},
|
||||
{
|
||||
Query: "select sum(y) from tbl AS OF STAGED",
|
||||
Expected: []sql.Row{
|
||||
{float64(95)},
|
||||
},
|
||||
},
|
||||
{
|
||||
Query: "select sum(y) from tbl AS OF WORKING",
|
||||
Expected: []sql.Row{
|
||||
{float64(162)},
|
||||
},
|
||||
},
|
||||
{
|
||||
// add everything.
|
||||
Query: "update dolt_workspace_tbl set staged = 1",
|
||||
@@ -726,6 +738,7 @@ var DoltWorkspaceScriptTests = []queries.ScriptTest{
|
||||
Query: "update dolt_workspace_tbl set staged = false where id = 0",
|
||||
},
|
||||
{
|
||||
// Removing the staged row should not affect the working row's final value, but it will change the from_ value.
|
||||
Query: "select * from dolt_workspace_tbl",
|
||||
Expected: []sql.Row{
|
||||
{0, false, "modified", 42, "working", 42, "inserted"},
|
||||
|
||||
Reference in New Issue
Block a user