Skip to content

Commit

Permalink
fix: failing tests
Browse files Browse the repository at this point in the history
  • Loading branch information
lars-reimann committed Jan 7, 2025
1 parent bc79578 commit 4a2245c
Show file tree
Hide file tree
Showing 12 changed files with 20 additions and 20 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ class StringCell {
* @example
* pipeline example {
* val column = Column("example", ["abc", "def", "ghi"]);
* val result = column.transform((cell) -> cell.str.substring(1, 2));
* val result = column.transform((cell) -> cell.str.substring(start = 1, length = 2));
* // Column("example", ["bc", "ef", "hi"])
* }
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ from safeds.data.tabular.transformation import TableTransformer
* @example
* pipeline example {
* val table = Table({"a": [1, 2, 3, 4]});
* val discretizer = Discretizer(2, columnNames = "a").fit(table);
* val discretizer = Discretizer(binCount = 2, columnNames = "a").fit(table);
* val transformedTable = discretizer.transform(table);
* // Table({"a": [0, 0, 1, 1]})
* }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ class List<out E> {
*
* @example
* pipeline example {
* val string = [1, 2, 3].join("-"); // "1-2-3"
* val string = [1, 2, 3].join(separator = "-"); // "1-2-3"
* }
*/
@Pure
Expand All @@ -141,7 +141,7 @@ class List<out E> {
*
* @example
* pipeline example {
* val slice = [1, 2, 3].slice(1, 3); // [2, 3]
* val slice = [1, 2, 3].slice(start = 1, end = 3); // [2, 3]
* }
*/
@Pure
Expand Down Expand Up @@ -293,7 +293,7 @@ class String {
*
* @example
* pipeline example {
* val substring = "Hello, world!".substring(7, 12); // "world"
* val substring = "Hello, world!".substring(start = 7, end = 12); // "world"
* }
*/
@Pure
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -25,18 +25,18 @@ fun j(param: Any?, param2: Any?)
fun k(param: Any?, param2: Any?)

pipeline test {
f((g(1, 2)));
f((g(1, param2 = 2)));
f((g(param2 = 1, param1 = 2)));
f((h(1, 2)));
f((h(1, param2 = 2)));
f((h(param2 = 1, param1 = 2)));
f((h(param1 = 2)));
i("abc");
j("abc", 123);
k(1.23, 456);

f?((g(1, 2)));
f?((g(1, param2 = 2)));
f?((g(param2 = 1, param1 = 2)));
f?((h(1, 2)));
f?((h(1, param2 = 2)));
f?((h(param2 = 1, param1 = 2)));
f?((h(param1 = 2)));
i?("abc");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@
# Pipelines --------------------------------------------------------------------

def test():
__gen_placeholder_a = Table()
__gen_placeholder_a = Table({'a': []})

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@
package tests.generator.safeds

pipeline test {
val a = Table();
val a = Table({"a": []});
}

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ pipeline myPipeline {
val replace = "Hello, world!".replace("world", "planet");
val split = "Hello, world!".split(", ");
val startsWith = "Hello, world!".startsWith("Hello");
val substring = "Hello, world!".substring(7);
val substring = "Hello, world!".substring(start = 7);
val casefolded = "Hello, world!".toCasefolded();
val float = "3.14".toFloat();
val int = "42".toInt();
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -34,18 +34,18 @@ fun m(param: Int) -> result: Int
fun readFile() -> content: String

pipeline test {
f((g(1, 2)));
f((g(1, param2 = 2)));
f((g(param2 = 1, param1 = 2)));
f((h(1, 2)));
f((h(1, param2 = 2)));
f((h(param2 = 1, param1 = 2)));
f((h(param1 = 2)));
i("abc");
j("abc", 123);
k(1.23, 456);

f?((g(1, 2)));
f?((g(1, param2 = 2)));
f?((g(param2 = 1, param1 = 2)));
f?((h(1, 2)));
f?((h(1, param2 = 2)));
f?((h(param2 = 1, param1 = 2)));
f?((h(param1 = 2)));
i?("abc");
Expand Down

0 comments on commit 4a2245c

Please sign in to comment.