build_operation(cdo_ymonmin(x)) (`actual`) not equal to "cdo  ymonmin [ 'file.nc' ] {{output}}" (`expected`).

actual vs expected
- "cdo  ymonmin [ \"d:\\RCompile\\CRANincoming\\R-devel\\rcdo.Rcheck\\tests\\testthat\\file.nc\" ] {{output}}"
+ "cdo  ymonmin [ 'file.nc' ] {{output}}"

expect_warning(expect_equal(build_operation(cdo_ymonmin(x)), "cdo  ymonmin [ 'file.nc' ] {{output}}"))
expect_warning(expect_warning(expect_equal(build_operation(op), "cdo  ymonsub [ 'file2.nc' 'file.nc' ] {{output}}")))
op <- cdo_sellonlatbox(x, 0, 360, -90, 0)
expect_warning(expect_equal(build_operation(op), "cdo  sellonlatbox,0,360,-90,0 [ 'file.nc' ] {{output}}"))
expect_warning(expect_warning(expect_equal(build_operation(op), "cdo  ymonsub [ 'file2.nc' -ymonmean [ 'file.nc' ] ] {{output}}")))
expect_error(cdo_ymonmean(cdo_trend(x)), "needs 1 input stream, not 2")
op_option <- cdo_options_use(op, c("-L", "-f"))
expect_warning(expect_equal(build_operation(op_option), "cdo -L -f ymonmax [ 'file.nc' ] {{output}}"))
expect_warning(expect_equal(build_operation(op), "cdo -O ymonmax [ 'file.nc' ] {{output}}"))
expect_warning(expect_equal(build_operation(op_option), "cdo -L -f -O ymonmax [ 'file.nc' ] {{output}}"))
expect_warning(expect_equal(build_operation(op_option, options_replace = TRUE), "cdo ymonmax [ 'file.nc' ] {{output}}"))
expect_warning(expect_equal(build_operation(op_option, options = "-L", options_replace = TRUE),
"cdo -L ymonmax [ 'file.nc' ] {{output}}"))

"cdo  ymonsub [ 'file2.nc' 'file.nc' ] {{output}}"
"cdo  sellonlatbox,0,360,-90,0 [ 'file.nc' ] {{output}}"
"cdo  ymonsub [ 'file2.nc' -ymonmean [ 'file.nc' ] ] {{output}}"
"cdo -L -f ymonmax [ 'file.nc' ] {{output}}"
"cdo -O ymonmax [ 'file.nc' ] {{output}}"
"cdo -L -f -O ymonmax [ 'file.nc' ] {{output}}"
"cdo -L ymonmax [ 'file.nc' ] {{output}}"

build_operation(op) (`actual`) not equal to "cdo  ymonsub [ 'file2.nc' 'file.nc' ] {{output}}" (`expected`).

actual vs expected
- "cdo  ymonsub [ \"d:\\RCompile\\CRANincoming\\R-devel\\rcdo.Rcheck\\tests\\testthat\\file2.nc\" \"d:\\RCompile\\CRANincoming\\R-devel\\rcdo.Rcheck\\tests\\testthat\\file.nc\" ] {{output}}"
+ "cdo  ymonsub [ 'file2.nc' 'file.nc' ] {{output}}"