/*
 * Copyright (C) 2026 Memby contributors
 *
 * SPDX-License-Identifier: GPL-2.0-only
 */

package com.ponzischeme89.memby.ui.settings

import com.ponzischeme89.memby.BuildConfig
import org.junit.Assert.assertTrue
import org.junit.Test

class LegalNoticesTest {

    @Test
    fun `distributed app embeds source and complete GPL notice`() {
        assertTrue(BuildConfig.SOURCE_CODE_URL.startsWith("https://"))
        assertTrue(BuildConfig.PROJECT_NOTICE_TEXT.contains("Memby"))
        assertTrue(BuildConfig.PROJECT_NOTICE_TEXT.contains(BuildConfig.SOURCE_CODE_URL))
        assertTrue(BuildConfig.GPL_LICENSE_TEXT.contains("GNU GENERAL PUBLIC LICENSE"))
        assertTrue(BuildConfig.GPL_LICENSE_TEXT.contains("Version 2, June 1991"))
        assertTrue(BuildConfig.GPL_LICENSE_TEXT.contains("END OF TERMS AND CONDITIONS"))
    }
}
