package com.prodhack.moscow2025.presentation.utils

import org.junit.Test
import org.junit.Assert.*

class StringUtilsTest {

	@Test
	fun `notNullOrBlank returns true for non-null non-blank string`() {
		val result = "test".notNullOrBlank()
		assertTrue(result)
	}

	@Test
	fun `notNullOrBlank returns false for null string`() {
		val result: String? = null
		assertFalse(result.notNullOrBlank())
	}

	@Test
	fun `notNullOrBlank returns false for empty string`() {
		val result = "".notNullOrBlank()
		assertFalse(result)
	}

	@Test
	fun `notNullOrBlank returns false for blank string`() {
		val result = "   ".notNullOrBlank()
		assertFalse(result)
	}

	@Test
	fun `notNullOrBlank returns true for string with content`() {
		val result = "hello world".notNullOrBlank()
		assertTrue(result)
	}
}

