Skip to content

Conversation

@jbcaillau
Copy link
Member

  • add a test for x1(0) * u1(t)^2 + ... (not mixed but previously accepted as control_fun!)

@jbcaillau jbcaillau linked an issue Dec 20, 2025 that may be closed by this pull request
@github-actions
Copy link
Contributor

github-actions bot commented Dec 20, 2025

Breakage test results
Date: 2025-12-20 23:53:50

Name Latest Stable
OptimalControl compat: v0.7.2 compat: v0.7.2

jbcaillau and others added 2 commits December 21, 2025 00:41
- Add comprehensive tests for :other constraint type errors in test_onepass_fun_bis.jl and test_onepass_exa_bis.jl
  * Unit tests for p_constraint_fun!/p_constraint_exa! with :other type
  * Integration tests using @def and @def_exa macros for invalid constraints
  * Tests cover mixed state/control at different times (e.g., x(0)*u(t)+u(t)^2 <= 1)
- Fix incorrect superscript exponents in test_onepass_fun.jl
  * Replace r²(__s) with (r^2)(__s) in lines 760 and 854
  * Ensures proper aliasing for exponentiated variables
- Update as_range tests in test_onepass_exa_bis.jl
  * Reflect new implementation returning :(($x):($x)) instead of [x]

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
- Correct test from :((:foo):(:foo)) to :(foo:foo)
- The implementation :(($x):($x)) interpolates x directly, producing :(foo:foo)
- The previous test with nested quotes was incorrect

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
@jbcaillau jbcaillau marked this pull request as ready for review December 20, 2025 23:52
@jbcaillau
Copy link
Member Author

merged into #182

@jbcaillau jbcaillau closed this Dec 21, 2025
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.

[Dev] Code improvement and bug fixes

2 participants