সব বই

পেশাদার

1 Markets I: The Ecosystem and Exchange-Traded Marketsবাজার অনলাইন 2 Markets II: Rates, FX and Creditবাজার অনলাইন 3 Markets III: Commodities, Energy and Cryptoবাজার অনলাইন 4 Quantitative Methodsপদ্ধতি অনলাইন 5 Derivatives and Volatilityডেরিভেটিভস অনলাইন 6 Rates, Credit, XVA and Riskসুদহার, ঋণ ও ঝুঁকি অনলাইন 7 Research Craft: Predictors, Backtests, Measurement, Portfoliosগবেষণা অনলাইন 8 Strategies I: Equities and Futuresকৌশল অনলাইন 9 Strategies II: Volatility, Relative Value, Macro and the Bank Desksকৌশল অনলাইন 10 Microstructure and Executionএক্সিকিউশন অনলাইন 11 Market Making and High-Frequency Tradingমার্কেট মেকিং অনলাইন 12 Machine Learning for Marketsমেশিন লার্নিং অনলাইন 13 Low-Latency Softwareপ্রযুক্তি অনলাইন 14 Networks, Hardware and Trading Infrastructureপ্রযুক্তি অনলাইন 15 Research, Data and Risk Platformsপ্রযুক্তি অনলাইন 16 The Desk and the Firmপ্রতিষ্ঠান অনলাইন 17 The Industry: Firms, Roles and Careersক্যারিয়ার অনলাইন 18 Interviews I: Maths, Probability and Speedক্যারিয়ার অনলাইন 19 Interviews II: Markets, Trading Games and the Final Roundক্যারিয়ার অনলাইন 20 Interviews III: Codeক্যারিয়ার অনলাইন
অ্যাপ পরিচিতি Coach সাইন ইন পড়া শুরু করো

বইগুলো এখনো বাংলা ভাষায় পাওয়া যায় না — ইংরেজি সংস্করণ দেখানো হচ্ছে।

Computer Science · পরিভাষা

Test case, boundary case কী?

অন্য নাম: test case · boundary case

Definition 1.9 High School Computer Science · অধ্যায় 1 — Specifications, Assertions and Tests

A test case is an input for which the expected result is known in advance, from the specification, together with that expected result. A test case passes when the function returns the expected result and fails otherwise. A boundary case is a test case at the edge between two kinds of input that the specification treats differently.

The four kinds of year in the specification of leap_year, with one test year in each. Sam’s three tries came from the two outer kinds and from the innermost one, never from the third.
The four kinds of year in the specification of leap_year, with one test year in each. Sam’s three tries came from the two outer kinds and from the innermost one, never from the third.
The paths through the corrected function. The five tests reach every return; the last one in both of its outcomes.
The paths through the corrected function. The five tests reach every return; the last one in both of its outcomes.

উদাহরণ

Example 1.11 (Tests for leap_year)

One year of each kind: 20232023, 20242024, 19001900, 20002000; the edge of the precondition: 15831583, which is not a leap year. Sam’s original function fails exactly one of these five tests, the one for 19001900. Any set of tests that misses the third kind misses her bug, however many years it contains.

প্রসঙ্গসহ পড়ো →