func TestFailIfBuildPathEqualsSketchPathSketchPathDiffers(t *testing.T) { ctx := &types.Context{ SketchLocation: "sketchPath/sketch.ino", BuildPath: "buildPath", } command := builder.FailIfBuildPathEqualsSketchPath{} NoError(t, command.Run(ctx)) }
func TestFailIfBuildPathEqualsSketchPathSketchPathDiffers(t *testing.T) { context := make(map[string]interface{}) context[constants.CTX_BUILD_PATH] = "buildPath" context[constants.CTX_SKETCH_LOCATION] = "sketchPath/sketch.ino" command := builder.FailIfBuildPathEqualsSketchPath{} NoError(t, command.Run(context)) }