Skip to content

TestFramework: [VM and YYC] fx_get_set_test #14 in BasicFiltersEffectsTestSuite, fx_set_parameter() - first parameter should be an FX object #303

Description

@ksuchitra532

Workflow Artifact URL

https://github.com/YoYoGames/GM-TestFramework/actions/runs/19034620428/artifacts/4448751229

Test Code

	addFact("fx_get_set_test #14", function() {
		
		var effect, input, output;
		effect = fx_create("_filter_colourise");
			
		// SHOULD WORK
			
		input = [0, 0, 0, .4];
		fx_set_parameter(effect, "g_TintCol", input);
		output = fx_get_parameter(effect, "g_TintCol");
		assert_array_equals(output, input, "fx_set_parameter(effect, param), failed to set array parameter");
			
	});

Output From The Test

Test Name: fx_get_set_test #14
Message: fx_set_parameter() - first parameter should be an FX object
Long Message: ERROR in action number 1
of Create Event for object objTest:
fx_set_parameter() - first parameter should be an FX object
at gml_Script_anon@7842@BasicFiltersEffectsTestSuite@BasicFiltersEffectsTestSuite

Script: gml_Script_anon@7842@BasicFiltersEffectsTestSuite@BasicFiltersEffectsTestSuite

Runtime Version

2024.1400.1.901

Location Of The Test

https://github.com/YoYoGames/GM-TestFramework/blob/develop/projects/xUnit/scripts/BasicFiltersEffectsTestSuite/BasicFiltersEffectsTestSuite.gml#L289-L301

Which platform(s) are you seeing the problem on?

Windows

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions