๐งชTDD Challengeยทbeginnerยทโฑ๏ธ 15โ30mยทโญ 100 XP
M-078Build Your First Processing Chain
Description
Nebula Corp wants to build composable AI pipelines where each step transforms the data and passes it to the next. Build a simple chain system inspired by LangChain: create individual processing steps, chain them together, and run data through the pipeline. Each step is a function that takes input and returns output.
Test Cases (3)
Chain processes sequentially
Should uppercase then add exclamation mark
Input:testChainString()
Expected:HELLO!
Chain with numbers
5 * 2 = 10, 10 + 10 = 20
Input:testChainNumbers()
Expected:20
Branch routes correctly
5 is not > 10, so should take the else branch
Input:testBranch()
Expected:small: 5
Related Lessons
Click Run / Check to validate your solution