Skip to content

test: Add enum edge cases to naming obstacle course#4482

Open
udayprakash wants to merge 2 commits intosmithy-lang:mainfrom
udayprakash:add-enum-obstacle-course-tests
Open

test: Add enum edge cases to naming obstacle course#4482
udayprakash wants to merge 2 commits intosmithy-lang:mainfrom
udayprakash:add-enum-obstacle-course-tests

Conversation

@udayprakash
Copy link
Contributor

Motivation and Context

Add test cases to the naming obstacle course for enum-related codegen issues that have been identified.

Description

Adds two new enum types to naming-obstacle-course-ops.smithy:

  1. SpecialCharacterEnum - Enum values containing # characters that conflict with rustTemplate formatting

  2. UnnamedEnum - Unnamed enums (values without names) that need AsRef<str> implementation

Testing

These tests currently fail by design - they demonstrate the bugs that need to be fixed by the related PRs.

Checklist

  • I have updated CHANGELOG.next.toml if I made changes to the smithy-rs codegen or runtime crates

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

Uday Prakash and others added 2 commits January 15, 2026 10:29
Add test cases for enum-related codegen issues:

- SpecialCharacterEnum: Enum values containing # characters that conflict
  with rustTemplate formatting (see PR smithy-lang#4476)
- UnnamedEnum: Unnamed enums that need AsRef<str> implementation
  (see issue smithy-lang#3886, PR smithy-lang#4478)

These tests currently fail, demonstrating the bugs that need to be fixed.
@udayprakash udayprakash marked this pull request as ready for review February 20, 2026 18:33
@udayprakash udayprakash requested review from a team as code owners February 20, 2026 18:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant