Skip to content

Commit 2d6edf0

Browse files
committed
[benc/delete-old-todos] Delete more TODOs
1 parent be09b79 commit 2d6edf0

File tree

54 files changed

+20
-196
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

54 files changed

+20
-196
lines changed

packages/kas/src/__tests__/comparing.test.ts

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -163,8 +163,6 @@ describe("comparing", () => {
163163
expect("x^2+y^2=r^2").toEqualExpr("r^2=x^2+y^2");
164164
expect("23^1.5=110.304").toEqualExpr("110.304=23^1.5");
165165

166-
// TODO(alex): make sure that I have both positive and negative
167-
// test cases for all functionality
168166
expect("6.12*10^-2").toEqualExpr("6.12*10^-2");
169167
expect("6.12*10^-2").not.toEqualExpr("6.12*10^-6");
170168

@@ -198,7 +196,6 @@ describe("comparing", () => {
198196
expect("sin(500pi x)").not.toEqualExpr("sin(pi x)");
199197

200198
// Check that floating point error isn't killing us
201-
// TODO(jack): These don't seem to test much; make better tests
202199
expect("0").toEqualExpr("sin(7pi)");
203200
expect("sin(7pi)").toEqualExpr("0");
204201
expect("0").toEqualExpr("sin(500pi)");
@@ -293,8 +290,6 @@ describe("comparing", () => {
293290
// to isolate `f(x)` in each expression and then check that the
294291
// expressions that they're equal to are equal. In this case that
295292
// would be `sin^2(x)+cos^2(x)` and `1`.
296-
// TODO(TP-11651): Update compare to isolate functions on wide side
297-
// before comparing expressions on the other side.
298293
// expect("f(x) = sin^2(x)+cos^2(x)").toEqualExpr("f(x) = 1");
299294
expect("f(x) = ln|x|+c").toEqualExpr("f(x)-ln|x|-c = 0");
300295

packages/kas/src/__tests__/index.test.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -263,7 +263,6 @@ describe("KAS", () => {
263263
expect("ln(x+y)").toBeSimplified();
264264

265265
// Will only expand logarithms if leads to a simpler expression
266-
// TODO(alex): Combine all simplify(assert, ) and isSimplified(assert, ) tests!
267266
expect("ln(x/y)").toBeSimplified();
268267
expect("ln(x/y)+ln(y)").not.toBeSimplified();
269268
});
@@ -329,7 +328,6 @@ describe("KAS", () => {
329328
expect("y=(x+1)/(x+2)").toBeSimplified();
330329
expect("y/(x+1)=1/(x+2)").toBeSimplified();
331330

332-
// TODO(alex): Combine all isSimplified(assert, ) and simplify(assert, ) tests!
333331
expect("y=(x+1)/(2x+2)").not.toBeSimplified();
334332
expect("y=1/2").toBeSimplified();
335333

packages/kas/src/__tests__/parsing.test.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -290,8 +290,6 @@ describe("parsing", () => {
290290

291291
expect("|x|").toParseAs("abs(x)");
292292
expect("||x||").toParseAs("abs(abs(x))");
293-
// TODO(alex): fix the below so it doesn't require an *
294-
// may require own lexer/preprocessor
295293
expect("|x|*|y|").toParseAs("abs(x)*abs(y)");
296294

297295
expect("\\abs(x)").toParseAs("abs(x)");

packages/math-input/src/components/input/__tests__/mathquill.test.ts

Lines changed: 0 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,6 @@ describe("MathQuill", () => {
2828
document.body.removeChild(span);
2929
});
3030

31-
// TODO(charlie): Add tests for "FRAC_EXCLUSIVE" (the mixed-number
32-
// fraction key).
3331
describe("Fraction Bar", () => {
3432
it("should work with no content", () => {
3533
mathField.pressKey("FRAC_INCLUSIVE");
@@ -166,14 +164,6 @@ describe("MathQuill", () => {
166164
mathField.pressKey("EXP");
167165
expect(mathField.getContent()).toEqual("35x^{ }");
168166
});
169-
170-
// TODO(kevinb): makes the expression an exponent when it shouldn't
171-
it.skip("should work on a selected expression", () => {
172-
mathField.setContent("35x+5");
173-
mathField.selectAll();
174-
mathField.pressKey("EXP");
175-
expect(mathField.getContent()).toEqual("\\left(35x+5\\right)^{ }");
176-
});
177167
});
178168

179169
describe("Square Root", () => {
@@ -207,14 +197,6 @@ describe("MathQuill", () => {
207197
mathField.pressKey("RADICAL");
208198
expect(mathField.getContent()).toEqual("35x^{2}\\sqrt[]{}");
209199
});
210-
211-
it.skip("should work on a selected expression", () => {
212-
mathField.setContent("35x+5");
213-
mathField.selectAll();
214-
mathField.pressKey("RADICAL");
215-
// TODO(kevinb): check cursor location
216-
expect(mathField.getContent()).toEqual("\\sqrt[ ]{35x+5}");
217-
});
218200
});
219201

220202
describe("Log", () => {
@@ -279,7 +261,6 @@ describe("MathQuill", () => {
279261
expect(mathField.getContent()).toEqual("35x^{2}");
280262
});
281263

282-
// TODO(kevinb) math isn't selected
283264
it("should select a fraction when deleting from outside of it", () => {
284265
const expr = "\\frac{35x+5}{x^{2}}";
285266
mathField.setContent(expr);
@@ -314,15 +295,6 @@ describe("MathQuill", () => {
314295
expect(mathField.getContent()).toEqual("\\left(35x+\\right)");
315296
});
316297

317-
// TODO(kevinb) fix this behavior so that we delete the exponent too
318-
it.skip("should not delete squared exponents", () => {
319-
mathField.setContent("35x^{2}");
320-
mathField.pressKey("BACKSPACE");
321-
expect(mathField.getContent()).toEqual("35x^{2}");
322-
mathField.pressKey("BACKSPACE");
323-
expect(mathField.getContent()).toEqual("35x^{ }");
324-
});
325-
326298
it("should not delete non-square exponents", () => {
327299
mathField.setContent("35x^5");
328300
mathField.pressKey("BACKSPACE");
@@ -643,10 +615,4 @@ describe("MathQuill", () => {
643615
expect(cursor[MQ.R].ctrlSeq).toEqual("5");
644616
});
645617
});
646-
647-
describe.skip("Jump out", () => {
648-
// TODO(charlie): Write extensive tests for the 'Jump out' behavior.
649-
});
650-
651-
describe.skip("Equals =, !=, <, <=, >, >=", () => {});
652618
});

packages/math-input/src/components/keypad/__tests__/keypad.test.tsx

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,9 +47,7 @@ describe("keypad", () => {
4747
cursorContext={
4848
context as (typeof CursorContext)[keyof typeof CursorContext]
4949
}
50-
onAnalyticsEvent={async () => {
51-
/* TODO: verify correct analytics event sent */
52-
}}
50+
onAnalyticsEvent={async () => {}}
5351
/>,
5452
);
5553

packages/perseus-score/src/widgets/numeric-input/score-numeric-input.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -613,7 +613,7 @@ describe("scoreNumericInput", () => {
613613
});
614614

615615
it("rejects percentages greater than 100%", () => {
616-
// TODO(benchristel): This seems like incorrect behavior. I've added
616+
// NOTE(benchristel): This seems like incorrect behavior. I've added
617617
// this test to characterize the current behavior. Feel free to
618618
// delete/change it if it's in your way.
619619
const rubric: PerseusNumericInputRubric = {
@@ -636,7 +636,7 @@ describe("scoreNumericInput", () => {
636636
});
637637

638638
it("accepts answers with an extra, incorrect percent sign if > 1", () => {
639-
// TODO(benchristel): This seems like incorrect behavior. I've added
639+
// NOTE(benchristel): This seems like incorrect behavior. I've added
640640
// this test to characterize the current behavior. Feel free to
641641
// delete/change it if it's in your way.
642642
const rubric: PerseusNumericInputRubric = {

packages/perseus/src/__tests__/perseus-markdown.test.ts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -528,10 +528,6 @@ describe("perseus markdown", () => {
528528
});
529529
});
530530

531-
// TODO(michaelpolyak): Ideally we would render the output with React,
532-
// to assert the markup. However, the `simple-markdown` library currently
533-
// produces rendering warnings such as missing `key` for table rows/columns.
534-
// We'll need to fix these warnings in order to not fail the tests.
535531
describe("output", () => {
536532
it("should output paragraphs", () => {
537533
// Arrange

packages/perseus/src/__tests__/renderer.test.tsx

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -907,9 +907,6 @@ describe("renderer", () => {
907907

908908
// Act and Assert
909909
expect(() => {
910-
// TODO: Right now KAError is mocked because we're
911-
// jest.mock()ing the logging module. Figure out how to
912-
// unmock.
913910
widget2.props.onFocus("this is not an array");
914911
}).toThrow("widget props.onFocus focusPath must be an Array");
915912
});

packages/perseus/src/interactive2/__tests__/movable-point.test.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ const createPoint = function (options) {
2121

2222
// Mock visibleShape which is only added when a movable point is used
2323
// with a shape.
24-
// TODO(kevinb): update MovablePoint to require a visibleShape
2524
visibleShape: {
2625
wrapper: {},
2726
},

packages/perseus/src/styles/shared.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@ export default StyleSheet.create({
2828
responsiveLabel: {
2929
// NOTE(charlie): The values used here should be kept in sync with the
3030
// caption text sizing in Perseus' styles.css.
31-
// TODO(charlie): Migrate the captions over to using this style.
3231
[mediaQueries.smOrSmaller]: {
3332
fontSize: 14,
3433
lineHeight: 1.3,

0 commit comments

Comments
 (0)