mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-11-16 12:58:11 +00:00
Renames proposals to proposal_list because the module name conflicts with the directory name
36 lines
862 B
Python
36 lines
862 B
Python
"""Tests for proposal_list.py."""
|
|
|
|
__copyright__ = """
|
|
Part of the Carbon Language project, under the Apache License v2.0 with LLVM
|
|
Exceptions. See /LICENSE for license information.
|
|
SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
|
|
"""
|
|
|
|
import unittest
|
|
|
|
from proposals.scripts import proposal_list
|
|
|
|
|
|
class TestProposal(unittest.TestCase):
|
|
def test_get_path(self):
|
|
proposals_path = proposal_list.get_path()
|
|
p = proposal_list.get_list(proposals_path)
|
|
self.assertEqual(
|
|
p[0],
|
|
(
|
|
"0024 - Generics goals",
|
|
"p0024.md",
|
|
),
|
|
)
|
|
self.assertEqual(
|
|
p[1],
|
|
(
|
|
"0029 - Linear, rebase, and pull-request GitHub workflow",
|
|
"p0029.md",
|
|
),
|
|
)
|
|
|
|
|
|
if __name__ == "__main__":
|
|
unittest.main()
|