[K/N][Tests] Migrate test withSpaces.kt

^KT-61259
This commit is contained in:
Vladimir Sukharev
2024-02-13 10:07:59 +01:00
committed by Space Team
parent 2bb9b936ac
commit 06a89a0061
4 changed files with 52 additions and 37 deletions
@@ -0,0 +1,7 @@
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
int custom_strcmp(const char* str1, const char* str2) {
return strcmp(str1, str2);
}
@@ -0,0 +1,11 @@
/*
* Copyright 2010-2023 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license
* that can be found in the LICENSE file.
*/
import kotlin.test.*
import kotlinx.cinterop.*
import withSpaces.*
fun main(args: Array<String>) {
customCompare("first", "second")
}