Skip to content

BasicStringTestSuite : string_delete_test #6 expecting incorrect value #308

@tinkerer-red

Description

@tinkerer-red

Description

addFact("string_delete_test #6", function() {

	var vstring = "Hello World!";

	// Check that using an index beyond the size of the string will clamp to the string size
	var res = string_delete(vstring, 100, 1);
	assert_equals(res, "Hello World", 
	"string_delete( string local , real const , real const ), 'Hello World!' with the 100th char deleted should be 'Hello World'");
});

Expected Change

The assert should be "Hello World!" including the !

Script Name

BasicStringTestSuite

Fact/Assert Name

string_delete_test #6

How reliably does this issue happen?

Always

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions